RouteContributor

Describes routes. A contributor only builds HttpRouteContracts, which are pure data: it generates no schema and registers no component (it references them, see me.ahoo.wow.openapi.contract.HttpComponent and me.ahoo.wow.openapi.contract.HttpSchema.TypeRef).

me.ahoo.wow.openapi.RouterSpecs calls contributeGlobal on every contributor, then contributeAggregate on every contributor for each aggregate whose routes are enabled. The order routes are contributed in does not matter: the route catalog orders them itself.

Inheritors

Functions

Link copied to clipboard
open fun contributeAggregate(currentContext: NamedBoundedContext, aggregateRouteMetadata: AggregateRouteMetadata<*>): List<HttpRouteContract>
Link copied to clipboard