Exclude Models or properties from swagger response

后端 未结 2 949
花落未央
花落未央 2020-12-09 20:13

I used swagger in my apache cxf project , used @Api and @ApiOperations and @ApiParam annotations and generated a api doc for the rest services.

But I want to exclude

2条回答
  •  再見小時候
    2020-12-09 21:00

    You can exclude fields like that :

    @ApiModelProperty(position = 1, required = true, hidden=true, notes = "used to display user name")
    

提交回复
热议问题