# Scalar.WebApi **Repository Path**: ymjake/scalar-webapi ## Basic Information - **Project Name**: Scalar.WebApi - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-27 - **Last Updated**: 2026-01-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: Scalar, Aspnet ## README # Scalar.WebApi Minimal API sample with: - ASP.NET API versioning - Microsoft.AspNetCore.OpenApi - Scalar UI - HTTP Basic auth ## Requirements - .NET SDK 10 ## Run ```powershell dotnet run --project Scalar.WebApi/Scalar.WebApi.csproj ``` ## Endpoints - `GET /v1/books` (requires HTTP Basic) - `GET /v2/books` (requires HTTP Basic) Basic credentials: - username: `admin` - password: `123456` ## OpenAPI - `GET /openapi/v1.json` - `GET /openapi/v2.json` ## Scalar UI - `GET /scalar` ## Version list The OpenAPI documents are registered from: - `Scalar.WebApi/Constants/ApiVersionConstants.cs`