Class VersioningOptions
global endpoint versioning options
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public sealed class VersioningOptions
Properties
DefaultVersion
this value will be used on endpoints that does not specify a version
Declaration
public int DefaultVersion { set; }
Property Value
Type | Description |
---|---|
int |
Prefix
the prefix used in front of the version (for example 'v' produces 'v{version}').
Declaration
public string? Prefix { set; }
Property Value
Type | Description |
---|---|
string |
PrependToRoute
set to true if you'd like to prefix the version to the route instead of being suffixed which is the default
Declaration
public bool? PrependToRoute { set; }
Property Value
Type | Description |
---|---|
bool? |