Hidden fields in swagger ui

后端 未结 2 1357
醉酒成梦
醉酒成梦 2021-01-22 05:50

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

2条回答
  •  迷失自我
    2021-01-22 06:17

    This is all you need to add to hide the field in the Swagger ui:

    @ApiModelProperty(hidden = true)
    private List reservations;
    

    That would hide the reservation list from showing.

提交回复
热议问题