in .net 9, Wed appi is created in dot net core, scalar api documentation library is installed but not working why?
Loading
in .net 9, Wed appi is created in dot net core, scalar api documentation library is installed but not working why?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sangeetha SPosted Jun 23, 2025, 10:44 AM
Make sure you have the latest version of
Scalar.AspNetCoreinstalled:dotnet add package Scalar.AspNetCore
In
.NET 9, you should configure it like this inProgram.cs:Scalar expects the OpenAPI document to be available at
/openapi/v1.jsonby default. If your document is named differently or not mapped, Scalar will show a blank page.Ensure the document is accessible at the expected path, or update the route pattern in
MapScalarApiReference.