Endpoint Type
An endpoint created by one of the Route* methods, such as RouteGet, to be mapped with
MapEffectEndpoints. Its methods add conventions, as on ASP.NET Core's endpoint convention builders.
Example
runner.RouteGet("/users/%i", getUser)
.RequiresAuthorization()
.WithName("GetUser")
Union cases
| Union case |
Description
|
Full Usage:
Endpoint (type)
Parameters:
(type)
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.Add
Parameters:
Action<EndpointBuilder>
-
Changes the endpoint builder
Returns: Endpoint
|
Adds a convention that changes the endpoint builder, as
|
Full Usage:
this.AddConvention
Parameters:
IEndpointConventionBuilder -> IEndpointConventionBuilder
-
Applies the convention to the endpoint's convention builder
Returns: Endpoint
Modifiers: inline |
Adds a convention to apply to the endpoint when it is mapped.
|
|
Allows anonymous access, as
|
Full Usage:
this.RequireCors
Parameters:
Action<CorsPolicyBuilder>
-
Builds the policy
Returns: Endpoint
|
Applies a CORS policy built by builder, as
|
|
|
|
Requires authorization with the default policy, as
|
Full Usage:
this.WithDisplayName
Parameters:
Func<EndpointBuilder, string>
-
Creates the display name
Returns: Endpoint
|
Sets the endpoint's display name with a function of its builder, as
|
|
Sets the endpoint's display name, as
|
|
Sets the endpoint's group name, e.g. for OpenAPI, as
|
|
|
|
Orsak