WIP
This commit is contained in:
parent
3c27ff5a32
commit
8b3bfd108a
2 changed files with 5 additions and 0 deletions
|
@ -517,6 +517,10 @@ class ToCapture c where
|
||||||
class ToAuthInfo a where
|
class ToAuthInfo a where
|
||||||
toAuthInfo :: Proxy a -> DocAuthentication
|
toAuthInfo :: Proxy a -> DocAuthentication
|
||||||
|
|
||||||
|
instance ToAuthInfo (BasicAuth "foo-realm" ()) where
|
||||||
|
toAuthInfo _ = DocAuthentication "herp" "derp"
|
||||||
|
|
||||||
|
|
||||||
-- | Generate documentation in Markdown format for
|
-- | Generate documentation in Markdown format for
|
||||||
-- the given 'API'.
|
-- the given 'API'.
|
||||||
markdown :: API -> String
|
markdown :: API -> String
|
||||||
|
|
|
@ -22,6 +22,7 @@ type ComprehensiveAPI =
|
||||||
QueryParam "foo" Int :> GET :<|>
|
QueryParam "foo" Int :> GET :<|>
|
||||||
QueryParams "foo" Int :> GET :<|>
|
QueryParams "foo" Int :> GET :<|>
|
||||||
QueryFlag "foo" :> GET :<|>
|
QueryFlag "foo" :> GET :<|>
|
||||||
|
"private" :> BasicAuth "foo-realm" () :> GET :<|>
|
||||||
-- Raw :<|>
|
-- Raw :<|>
|
||||||
RemoteHost :> GET :<|>
|
RemoteHost :> GET :<|>
|
||||||
ReqBody '[JSON] Int :> GET :<|>
|
ReqBody '[JSON] Int :> GET :<|>
|
||||||
|
|
Loading…
Reference in a new issue