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
|
||||
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
|
||||
|
|
|
@ -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 :<|>
|
||||
|
|
Loading…
Reference in a new issue