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

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

What Are The Best Universities In The World?

Why People Get Naked Before Freezing To Death