SwaggerUI setup ASP.NET Core Web API

1) Select the ASP.NET Core Web API project template

2) Enable OpenAPI support

3) Install Swashbuckle.AspNetCore.SwaggerUI package from NuGet Package Manager

4) In the Properties > launchsettings.json file, enable and add
“launchBrowser”: t…


This content originally appeared on DEV Community and was authored by Sharad Aade

1) Select the ASP.NET Core Web API project template

2) Enable OpenAPI support

3) Install Swashbuckle.AspNetCore.SwaggerUI package from NuGet Package Manager

4) In the Properties > launchsettings.json file, enable and add
"launchBrowser": true,
"launchUrl": "swagger",

5) Configure in the program.cs
app.UseSwaggerUI(options =>
{
options.SwaggerEndpoint("/openapi/v1.json", "api");
});

6) That's all, run the project.

Thank you! (This is not a step you need to follow.)


This content originally appeared on DEV Community and was authored by Sharad Aade


Print Share Comment Cite Upload Translate Updates
APA

Sharad Aade | Sciencx (2025-08-07T03:45:36+00:00) SwaggerUI setup ASP.NET Core Web API. Retrieved from https://www.scien.cx/2025/08/07/swaggerui-setup-asp-net-core-web-api/

MLA
" » SwaggerUI setup ASP.NET Core Web API." Sharad Aade | Sciencx - Thursday August 7, 2025, https://www.scien.cx/2025/08/07/swaggerui-setup-asp-net-core-web-api/
HARVARD
Sharad Aade | Sciencx Thursday August 7, 2025 » SwaggerUI setup ASP.NET Core Web API., viewed ,<https://www.scien.cx/2025/08/07/swaggerui-setup-asp-net-core-web-api/>
VANCOUVER
Sharad Aade | Sciencx - » SwaggerUI setup ASP.NET Core Web API. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/08/07/swaggerui-setup-asp-net-core-web-api/
CHICAGO
" » SwaggerUI setup ASP.NET Core Web API." Sharad Aade | Sciencx - Accessed . https://www.scien.cx/2025/08/07/swaggerui-setup-asp-net-core-web-api/
IEEE
" » SwaggerUI setup ASP.NET Core Web API." Sharad Aade | Sciencx [Online]. Available: https://www.scien.cx/2025/08/07/swaggerui-setup-asp-net-core-web-api/. [Accessed: ]
rf:citation
» SwaggerUI setup ASP.NET Core Web API | Sharad Aade | Sciencx | https://www.scien.cx/2025/08/07/swaggerui-setup-asp-net-core-web-api/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.