Dropwizard Swagger complex post Objects annotations -


i using drop wizard swagger document rest api. begin adding annotations existing resource classes generate document. have post request required post custom model such parameters below.

  public class parameters {      private final string param1;     private final string param2;     private final string param3;      public parameters(string param1, string param2, string param3) {         super();         this.param1 = param1;         this.param2 = param2;         this.param3 = param3;     }      public string getparam1() {         return param1;     }      public string getparam2() {         return param2;     }      public string getparam3() {         return param3;     } } 

i annotated post method below documents not generated method, 1 please guide me in right direction working?

@post     @path("/add/params")     @apioperation(value = "adding params") public response addparams(@apiparam(required = true)parameters params){  } 

it looks need post complex value based on pojo named parameters. make sure have no-arg constructor class , have getters & setters. appear body parameter json structure containing param1, param2, param3, strings.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -