feathersjs-ecosystem / feathers-swagger

Add documentation to your FeatherJS services and feed them to Swagger UI.
MIT License
225 stars 63 forks source link

Q: How can I sort the endpoints in UI #199

Closed anli-xsigns closed 4 years ago

anli-xsigns commented 4 years ago

I want to sort the endpoints in UI (or in JSON) alphabetically. How can I achieve this? Thanks for your help in advance!

Mairu commented 4 years ago

I guess you have the answer already. It depends on the order the services are registered. But you could sort the specs.path object after all services have been registered, which is in app.docs by default.