Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type ApiCtx = ReaderT Session (ReaderT ConnectionPool (ReaderT ConnectionPool Handler)) Source #
apiCtxToHandler :: Session -> ConnectionPool -> ConnectionPool -> ApiCtx :~> Handler Source #
class (FromJSON a, ToJSON a, Show a) => ResourceDefinition a where Source #
restFetchAll :: FetchAllImpl a Source #
restFetch :: FetchImpl a Source #
restCreate :: CreateImpl a Source #
restPatch :: PatchImpl a Source #
restReplace :: ReplaceImpl a Source #
restServer :: ServerImpl a Source #
fetchResource :: UUID -> ApiCtx (Maybe a) Source #
fetchAllResources :: ApiCtx [IdAnd a] Source #
createResource :: a -> ApiCtx (Maybe UUID) Source #
replaceResource :: IdAnd a -> ApiCtx () Source #
type ServerImpl a = FetchAllImpl a :<|> (FetchImpl a :<|> (CreateImpl a :<|> ReplaceImpl a)) Source #
module Servant
module Servant.Docs
module Servant.HTML.Blaze
module Text.Blaze.Html
module Data.Swagger
module RFC.Data.IdAnd
module RFC.API