How to use ApiModelProperty in java using Swagger

Viewed 304

I just want to make authorization required but I don't know exactly where to put: @ApiModelProperty(value = "authorization", dataType = "java.lang.String", required = true) String authorization in my method:

public Response getClienteFornitore(@HeaderParam("Authorization")  String authorization, @HeaderParam("StaySignedIn")  boolean staySignedIn, @PathParam("clienteFornitoreId") int clienteFornitoreId) {

....

}

I would really appreciate anyone who could help! Thank you!

1 Answers
Related