Город МОСКОВСКИЙ
00:12:15

Implement Swagger in a C# Razor Page Project and Create Living Documentations for JSON APIs

Аватар
JS Project Templates
Просмотры:
22
Дата загрузки:
29.11.2023 13:07
Длительность:
00:12:15
Категория:
Обучение

Описание

Add Swagger to an existing C# Razor Page project with a controller. This allows us to generate OpenAPI 3.0.1 version documentation about our RESTFul JSON APIs. It also gives us a user-friendly interface where we can access our endpoints and perform manual testing. I use the Swashbucke.AspNetCore library. I edit Program.cs to integrate swagger, show the Swagger UI, ad breakpoints to my controller so that we can walk through the endpoints in the debugger, and finally, add custom documentation to our Swagger page.

Source code is freely available on GitHub at https://github.com/discospiff/PlantDiary2022

Рекомендуемые видео