This commit is contained in:
Mario Rogic 2016-06-05 19:34:29 +02:00
parent 3c27ff5a32
commit 8b3bfd108a
2 changed files with 5 additions and 0 deletions

View file

@ -517,6 +517,10 @@ class ToCapture c where
class ToAuthInfo a where
toAuthInfo :: Proxy a -> DocAuthentication
instance ToAuthInfo (BasicAuth "foo-realm" ()) where
toAuthInfo _ = DocAuthentication "herp" "derp"
-- | Generate documentation in Markdown format for
-- the given 'API'.
markdown :: API -> String

View file

@ -22,6 +22,7 @@ type ComprehensiveAPI =
QueryParam "foo" Int :> GET :<|>
QueryParams "foo" Int :> GET :<|>
QueryFlag "foo" :> GET :<|>
"private" :> BasicAuth "foo-realm" () :> GET :<|>
-- Raw :<|>
RemoteHost :> GET :<|>
ReqBody '[JSON] Int :> GET :<|>