Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change API display order in Swagger (using Spring)

I am trying to change the displayed method order in swagger-ui page using java.

enter image description here

I need to show first welcome later hello controller method.

Below is my code. enter image description here

like image 909
user6808875 Avatar asked Sep 10 '18 09:09

user6808875


1 Answers

In the @ApiOperation annotation you have an attribute position that you can set to change the order. Note that the attribute is deprecated but still works.

like image 138
akuma8 Avatar answered Oct 13 '22 22:10

akuma8