Options
For some configuration you can pass a HypermediaExtensionsOptions
object to AddHypermediaExtensions
method.
-
ReturnDefaultRouteForUnknownHto
if set totrue
theIHypermediaRouteResolver
will return a default route (see:DefaultRouteSegmentForUnknownHto
) if a HTO’s route is unknown. This is useful during development time when first writing some HTO’s and not all controllers are implemented. Default isfalse
. -
DefaultRouteSegmentForUnknownHto
astring
which will be appended to<scheme>://<authority>/
as default route. -
AutoDeliverJsonSchemaForActionParameterTypes
: if set totrue
(default) the routes to action parameters (implementingIHypermediaActionParameter
) will be generated automatically except when there is a explicit rout created. -
ImplicitHypermediaActionParameterBinders
: if set totrue
(default) actions receiving aIHypermediaActionParameter
will have a automatic binder added. The binder allows to use the (obsolete)attribute. See: URL key extractionKeyFromUriAttribute