java - Swagger ui - Query param -
i using swagger ui , swagger core (1.3) jersey application. have query parameters must send every request post, get, delete...
how can default ?
you can use annotation @apiparam
swagger annotations in order configure query param used swagger-ui.
for example
@path("/{username}") @apioperation(value = "updated user") public response updateuser( @apiparam(value = "description query-parameter") @queryparam("username") string username ) { ... }
please, read more annotation in following official documentation: https://github.com/swagger-api/swagger-core/wiki/annotations#apiparam
Comments
Post a Comment