Java Quarkus OpenAPI: How to order various paths/routes in a Quarkus resource? #29603
Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
-
@Aravinda93 - you may find issue #28509 helpful, let me know. You should be able to adapt the [1] #28509 (comment) |
Beta Was this translation helpful? Give feedback.
-
@MikeEdgar Thank you very much for the link. I was able to get it working by adding the functions in my
Added the
And added it to my
This made everything work for me and now, I am able to sort however I want. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I add the sorting order for my API path endpoints using the Java OpenAPI annotations? I am currently using
Quarkus
to develop a rest-based application within that I am using the OpenAPI annotations to generate the Swagger-UI but I am not able to control the orders for various paths/routes that appear. Is there a way to achieve this by forcing the OpenAPI to always sort as per my need?Following are multiple resources and endpoints I have:
ExtensionsResource:
I always want to ensure that the swagger-ui displays the API endpoints in the following order:
This above code is just for reference my actual code looks different I just want to know how to force the ordering of endpoints in Swagger-UI using the OpenAPI annotation.
The contents of my
application.yaml
file looks something like this:For
operations-sorter:
I would like to assign my custom order rather thanalpha
or any pre-defined order. Is there a way to achive this`Beta Was this translation helpful? Give feedback.
All reactions