Class GlobalConfig
gives access to the fastendpoints global configuration settings
Inherited Members
Namespace: FastEndpoints.Swagger
Assembly: FastEndpoints.Swagger.dll
Syntax
public static class GlobalConfig
Properties
AllowEmptyRequestDtos
allows the use of empty request dtos
Declaration
public static bool AllowEmptyRequestDtos { get; }
Property Value
Type | Description |
---|---|
bool |
EndpointRoutePrefix
prefix for all routes (example 'api').
Declaration
public static string? EndpointRoutePrefix { get; }
Property Value
Type | Description |
---|---|
string |
IsUsingAspVersioning
Asp.Versioning.Http library is being used for versioning
Declaration
public static bool IsUsingAspVersioning { get; }
Property Value
Type | Description |
---|---|
bool |
RouteConstraintMap
this route constraint type map will be used to determine the type for a route parameter if there's no matching property on the request dto. the dictionary key is the name of the constraint and the value is the corresponding Type
Declaration
public static Dictionary<string, Type> RouteConstraintMap { get; }
Property Value
Type | Description |
---|---|
Dictionary<string, Type> |
VersioningPrefix
the prefix used in front of the version (for example 'v' produces 'v{version}').
Declaration
public static string? VersioningPrefix { get; }
Property Value
Type | Description |
---|---|
string |