DEV Community

Cover image for Scalar Setup ASP.NET Core Web API
Sharad Aade
Sharad Aade

Posted on

Scalar Setup ASP.NET Core Web API

  • Step - 1
    Install NuGet Package

  • Step - 2
    Add Code in - Properties/launchSettings.json

"launchBrowser": true,
"launchUrl": "scalar",

  • Step - 3 Add Code in Program.cs file

if (app.Environment.IsDevelopment())
{
app.MapOpenApi();
app.MapScalarApiReference();
}

  • Step - 4 Run the project

Top comments (1)

Collapse
 
sharadaade profile image
Sharad Aade • Edited

Simple way to setup scalar for ASP.NET Core Web API😃