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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -