| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Server.RouteSpec
Description
The documented operation view of a route, as plain OpenAPI-free data.
specsOf erases an Ecluse.Core.Server.Route.Route into the operations the
capability manifest needs. A write route contributes PUT. A read route contributes
both GET and its derived bodiless HEAD operation. The capture type, builder, and
typed response value disappear, but each operation's ResponseDocs are projected from
the same ResponseContract runtime dispatch uses.
Synopsis
The documented view
One served HTTP operation: its name, exact method, path template, prose, request, and response documents.
Not Eq/ Show: response and request schemas may carry autodocodec codecs, which
are functions.
Constructors
| RouteSpec | |
Fields
| |
A named path parameter and its human-facing description.
Constructors
| ParamSpec | |
Fields
| |