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
You can exclude fields like that :
@ApiModelProperty(position = 1, required = true, hidden=true, notes = "used to display user name")