Class ApiEndpointOptions
- Namespace
- Cratis.Arc
- Assembly
- Cratis.Arc.Core.dll
Represents the options for API endpoints.
public class ApiEndpointOptions
- Inheritance
-
ApiEndpointOptions
- Inherited Members
- Extension Methods
Constructors
ApiEndpointOptions()
public ApiEndpointOptions()
Properties
EnableQueryHttpMethod
Whether to expose queries over the HTTP QUERY method (RFC 10008) in addition to GET.
public bool EnableQueryHttpMethod { get; set; }
Property Value
Remarks
When enabled (the default), every generated query endpoint also accepts the QUERY method, carrying its arguments in a JSON request body instead of the query string. Disable this to restrict query endpoints to GET only — for example behind infrastructure that rejects unknown HTTP verbs.
IncludeCommandNameInRoute
Whether to include the command name as the last segment of the route.
public bool IncludeCommandNameInRoute { get; set; }
Property Value
IncludeQueryNameInRoute
Whether to include the query name as the last segment of the route.
public bool IncludeQueryNameInRoute { get; set; }
Property Value
RoutePrefix
Gets or sets the route prefix to use for endpoints.
public string RoutePrefix { get; set; }
Property Value
SegmentsToSkipForRoute
Number of segments to skip from the start of the type's namespace when constructing the route.
public int SegmentsToSkipForRoute { get; set; }