Skip to content

Configuration

This is the place to set WebApiEndpoint wide configuration.

You don't need to specify a configuration, it will use the default one if you don't.

But if you want to override them, then the option is there.

RouteFactory

This is the way to override how the route is created from a 'MetadataRouteDefinition'.

By default this is set to:

api/{api-version}/{route}

DefaultApiVersion

This is the ApiVersion that will be used if one is not specified.

By default this is set to 1.0

SecureByDefault

This allows you to make all WebApiEndpoints require authorization.

By default this is off

EnableMiddleware

This allows you to turn on middleware.

By default this is off