Immediate.Apis
Creating endpoints
Any Immediate.Handlers handler can be transformed into an endpoint by appending a MapX attribute (MapGet, MapPost, etc.), like so:
Registering the endpoints
In your Program.cs, add a call to app.MapXxxEndpoints(), where Xxx is the application identifier.
By default, this is the short form of the assembly name. For example:
- For a project named
Web, it will beapp.MapWebEndpoints() - For a project named
Application.Web, it will beapp.MapApplicationWebEndpoints()
However, this name can be overridden using [assembly: ImmediateAssemblyIdentifier("SomeIdentifier")].