An Endpoint type that holds the path and the method.
Gets used as the key in the API hashmap. Modify defEndpoint
or any Endpoint value you want using the path and method
lenses to tweak.
defEndpoint"GET" /
defEndpoint & path <>~ ["foo"]"GET" /foo
defEndpoint & path <>~ ["foo"] & method .~ HTTP.methodPost"POST" /foo
Instances6Eq, Ord, Show, Generic, Hashable, Rep
Eq EndpointDefined in servant-docs-0.13.1 · Servant.Docs.InternalOrd EndpointDefined in servant-docs-0.13.1 · Servant.Docs.InternalShow EndpointDefined in servant-docs-0.13.1 · Servant.Docs.InternalGeneric EndpointDefined in servant-docs-0.13.1 · Servant.Docs.InternalHashable EndpointDefined in servant-docs-0.13.1 · Servant.Docs.Internaltype Rep Endpoint = D1 ('MetaDataDefined in servant-docs-0.13.1 · Servant.Docs.Internal"Endpoint"
"Servant.Docs.Internal"
"servant-docs-0.13.1-EuxugKtmm1aLMvEAeSzZGT"
'False) (C1 ('MetaCons"Endpoint"
'PrefixI 'True) (S1 ('MetaSel ('Just"_path"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]) :*: S1 ('MetaSel ('Just"_method"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Method)))