Skip to content

Instantly share code, notes, and snippets.

View theilgaz's full-sized avatar
:octocat:
courtesy of the unique creator

Abdullah Ilgaz theilgaz

:octocat:
courtesy of the unique creator
View GitHub Profile
@dj-nitehawk
dj-nitehawk / Program.cs
Last active June 11, 2025 21:02
API Visualization with Scalar
using FastEndpoints.Swagger;
using Scalar.AspNetCore; //dotnet add package Scalar.AspNetCore
var bld = WebApplication.CreateBuilder(args);
bld.Services
.AddFastEndpoints()
.SwaggerDocument(); //define a swagger doc - v1 by default
var app = bld.Build();
app.UseFastEndpoints(); //must come before the UseOpenApi() call