Configuring and Using Swagger in an ASP.NET Core Application

preview_player
Показать описание

In this video, we are going to learn how to integrate Swagger UI in an ASP.NET Core Web API application.
Swagger is a set of tools that helps us with the API production and documentation process. Although we still hear Swagger being referred to as OpenAPI, this is no longer true. OpenAPI refers to the industry-standard specification for RESTful API design.
In short, OpenAPI is an industry-standard specification for Restful APIs, and Swagger is composed of the tools used to implement OpenAPI.
Open-source Swagger tools consist of:
- Swagger Editor
- Swagger Codegen
- Swagger UI
In this video, we’re going to talk about configuring and using Swagger UI.
It offers a web-based interface that allows anyone to interact with the API without having to know the implementation. It’s automatically generated from our OpenAPI specification and it allows for an easy documentation visualization.

FOLLOW US ON SOCIAL MEDIA!
Рекомендации по теме
Комментарии
Автор

Thank you all for watching and for your support.

CodeMaze
Автор

Your information on .NET core is commendable, I searched for many places for the right and easy info. But finally got it here. You are a gem😀

sruthisiddamseeti
Автор

Ok and how about a scenario where I have a single version like v1 but have multiple swagger documentation for different baseApiController example : user, admin

shirazahmed
Автор

How should we render the swagger UI at the root path / as well instead of supporting with a specific path /swagger/index.html ? Thanks

govindkarthikeyan
Автор

Great video @CodeMaze . I have done doubt
if
{
app.UseSwagger();
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "MyAPI V1");


});
}

how can we set swagger endpoint in other environment like production, UAT etc.., Does this function similarly to how it operates in the development environment?

arjunm.r
welcome to shbcf.ru