@Api("sample")
@JsonRpcService("demo")
public class DemoApi{}
@Api("sample")
@JsonRpcService("demo")
public class DemoApi{
@ApiOperation("say hello and tell him/her which toilet to use")
@JsonRpcMethod("greeting")
public DemoResponse hello(DemoRequest req)(){
return null;
}
}
@ApiModel
public class DemoRequest {
@ApiModelProperty("what's your name")
private String name;
@ApiModelProperty("what's your gender")
private String gender;
}
http://localhost:8080/v2/api-docs
or
http://localhost:8080/v3/api-docs
http://localhost:8080/swagger-ui.html
The swagger-bootstrap-ui contains swagger ui extension.
The swagger-api contains annotation documentation, samples etc.