Swagger Options
We may add SwaggerOptions, this may include:
- Route Template
- Ability to change icon
- Ability to change style
last two will optional to implement
It could be great to add oauth2 support too. Swagger should be able to get an access_token from an open id server and then use it to access apis.
I'm planning to work on OpenId module, in case you want to add a new feature, you 're welcome to submit a PR
I've implemented OpenId authorization for SwaggerUI here
https://github.com/EasyOC/EasyOC.Modules/tree/main/src/Modules/EasyOC.SwaggerUI
But there's a bit of an issue, Because the OpenId module needs to configure the authorization address, the relative path was supported in the OpenId client recipe in the earlier version, but it was not supported after the subsequent update. I had to change it to http://localhost/xxxx and then the user manually update the OpenId client configuration