Check whether sub is a sub API of api.
Equations
IsSubAPI sub api = AllIsElem (EndpointsList sub) api
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Moduleservant-openapi3-2.0.1.6Haskell2010
Useful type families for servant APIs.
Check whether sub is a sub API of api.
IsSubAPI sub api = AllIsElem (EndpointsList sub) apiBuild a list of endpoints from an API.
EndpointsList (a :<|> b) = AppendList (EndpointsList a) (EndpointsList b)EndpointsList (e :> a) = MapSub e (EndpointsList a)EndpointsList (NamedRoutes api) = EndpointsList (ToServantApi api)EndpointsList a = '[a]Extract a list of unique "body" types for a specific content-type from a servant API.