Configuring FastEndpoints
You configure how an endpoint should listen to incoming requests in your overridden Configure()
method. You call inherited methods like Get()
, Post()
, AllowAnonymous()
, and so on.
Configuration methods and properties
A more complete list of configuration methods are shown in Table 11.4:
Methods | Description |
Get , Head , Post , Patch , Put , Delete |
All these methods can have a comma-separated list of string values passed, params string[] routePatterns . You cannot configure multiple verbs using these methods. |
Verbs , Routes |
Pass a comma-separated list of HTTP verbs, and pass a comma-separated list of string values passed, params string[] routePatterns . Often used together as an alternative to the preceding individual HTTP verb methods. |
AllowAnonymous |
Allow unauthenticated requests to this endpoint. |
Claims |
Allow access if any of the listed claims are valid for the current user's request. |
Description |
Add metadata for OpenAPI documentation... |