More Swagger
HTML-код
- Опубликовано: 29 сен 2024
- Swagger works pretty well out of the box, but with a bit of work we can get the output just how we want it.
Source code available at: github.com/Jas...
Topics include:
- C# XML documentation comments
- Displaying .NET endpoint documentation in Swagger
- Documenting status codes
- Marking controllers and methods as obsolete
- Marking versions as deprecated
- Changing the list order of endpoints
- Grouping endpoints by HTTP verb
Do you add a lot of comments in Swagger, or just leave it at the basics? Let me know in the comments.
Source code available at: github.com/JasperKent/More-Swagger
Remember to subscribe at ruclips.net/channel/UCqWQzlUDdllnLmtgfSgYTCA
And if you liked the video, click the 👍.
Best Tutorial... many thanks!
Your videos are so informative, and go into the detail of things that most other people skip over.
Keep up the excellent work!
I love those videos on swagger ! Thank you.
One question, in the V2, can we use the comment on the methods ? Is it supported by swagger (I didn't try it) ?
I think there would have to be an inheritance relationship between the two controllers for that to work.