ForgeTrust.AppSurface.Web.Scalar
Source of truth
This package integrates the Scalar API Reference UI into AppSurface web applications.
Overview
The AppSurfaceWebScalarModule provides a modern, interactive API documentation interface. It depends on ForgeTrust.AppSurface.Web.OpenApi and automatically configures everything needed to serve the Scalar UI.
Usage
Simply add the AppSurfaceWebScalarModule to your module dependencies:
C#public class MyModule : IAppSurfaceWebModule
{
public void RegisterDependentModules(ModuleDependencyBuilder builder)
{
builder.AddModule<AppSurfaceWebScalarModule>();
}
// ...
}Features
- Built-in Dependency: Automatically registers the
AppSurfaceWebOpenApiModule. - Automatic UI Mapping: Maps the Scalar API reference endpoint using
MapScalarApiReference(). - Zero Config: Works out of the box with the default AppSurface startup pipeline.