EffectEndpointsTransformer Type
Adds the endpoints mapped with MapEffectEndpoints to an OpenAPI document. Their operations are described
from what can be read from them, with explicit metadata first:
- the operation id from
WithName, or the name of the handler's function; - the tag from
WithTags, or the module of the handler's function; - the summary and description from
WithSummaryandWithDescription, or the<summary>and<remarks>of the handler's XML docs; - the path parameters, typed by their route constraints and described by the docs'
<param>; - the responses in the metadata, such as those the runner describes with
IDescribeResponses, or
Produces, described by the docs'<response code="...">and<returns>. Without a success response, the operation has a 200 with the effect's result as its body. Their schemas are components of the document, referred to by the ids ofOpenApiOptions.CreateSchemaReferenceId, as the generator's own are.
The XML docs are read from the file next to the handler's assembly, which the project writes when it sets
GenerateDocumentationFile. An endpoint is in the documents of its group name, from WithGroupName, or
in every document without one, and not at all with ExcludeFromDescription.
Constructors
| Constructor |
Description
|
|
|
Orsak