I am using swagger UI 2.0.23 version and I provision api using json files. I need to send a particular header value to my api using swagger ui but the field should not be visibl
This is all you need to add to hide the field in the Swagger ui:
@ApiModelProperty(hidden = true)
private List<Reservation> reservations;
That would hide the reservation list from showing.
You can add a QueryParam and set @ApiParam(access="hide") to it, You won't see it as a query param in the swagger UI.