Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operationsSorter ? #416

Closed
lucasmaj opened this issue Jul 6, 2015 · 1 comment
Closed

operationsSorter ? #416

lucasmaj opened this issue Jul 6, 2015 · 1 comment
Milestone

Comments

@lucasmaj
Copy link

lucasmaj commented Jul 6, 2015

I would like to be able to change sort of actions within action groups. Right now actions are sorted by alpha which results in all verbs get/put/post/delete mixed up. I would like to be able to control that so that maybe gets are first then posts, puts, deletes. Doesn't swagger-ui already support it via operationsSorter? If so how do I get to this setting?

@domaindrivendev domaindrivendev added this to the v5.2.2 milestone Aug 17, 2015
@domaindrivendev
Copy link
Owner

For the next major release of Swashbuckle (6.0.0 targeting AspNet 6), I'm going to remove the C# interface for customizing swagger-ui settings. Instead, the recommended approach for customizing the UI will be to provide your own version of index.html. There, you can customize the UI as described in the swagger-ui documentation - https://github.com/swagger-api/swagger-ui#swaggerui
.
So, with this being the approach going forward, I'm not going to add any additional settings to the current version. To resolve your issue right now, you can inject your own version of index.html as described here - https://github.com/domaindrivendev/Swashbuckle#provide-your-own-index-file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants