How to order API endpoints with Swagger annotations (Springfox)
Asked Answered
C

1

10

I want my controller endpoints marked with @ApiOperation to come in a certain order in the Swagger spec. Tried to set position on @ApiOperation like this:

@ApiOperation(value = "xxx", position = 1)

seems to have no effect on the result. Any suggestions?

Courier answered 27/2, 2018 at 8:7 Comment(1)
Possible duplicate of Swagger API Operations OrderingEnvoy
D
0

This feature (custom endpoints order) is no more supported: deprecated

More about this you can find here: https://github.com/swagger-api/swagger-core/issues/1050

Dysplasia answered 12/6 at 20:22 Comment(1)
Picture got from: docs.swagger.io/swagger-core/v1.5.0/apidocs/io/swagger/…Dysplasia

© 2022 - 2024 — McMap. All rights reserved.