Safe Haskell | None |
---|---|
Language | GHC2021 |
Server
Synopsis
- type PlatformAPI = ("sql" :> (ReqBody '[JSON] SQLPost :> Post '[JSON] SqlQueryPostResult)) :<|> (("graphql" :> Get '[HTML] NoContent) :<|> (("graphql" :> (ReqBody '[JSON] GQLPost :> Post '[JSON] Object)) :<|> (("readonly" :> ("graphql" :> (ReqBody '[JSON] GQLPost :> Post '[JSON] Object))) :<|> (("playground" :> ("default-query" :> Get '[PlainText] Text)) :<|> (("schema" :> Get '[PlainText] Text) :<|> ("vacuum" :> Post '[JSON] Object))))))
- platformAPI :: Proxy (PlatformAPI :<|> Raw)
- redirectToPlayground :: Handler a
- platformServer :: ExternalAppContext -> Text -> Server PlatformAPI
- platformApp :: ExternalAppContext -> Text -> Application
- corsMiddleware :: Middleware
- startServer :: Config -> Config -> IO (Doc AnsiStyle)
Documentation
type PlatformAPI = ("sql" :> (ReqBody '[JSON] SQLPost :> Post '[JSON] SqlQueryPostResult)) :<|> (("graphql" :> Get '[HTML] NoContent) :<|> (("graphql" :> (ReqBody '[JSON] GQLPost :> Post '[JSON] Object)) :<|> (("readonly" :> ("graphql" :> (ReqBody '[JSON] GQLPost :> Post '[JSON] Object))) :<|> (("playground" :> ("default-query" :> Get '[PlainText] Text)) :<|> (("schema" :> Get '[PlainText] Text) :<|> ("vacuum" :> Post '[JSON] Object)))))) Source #
platformAPI :: Proxy (PlatformAPI :<|> Raw) Source #
platformServer :: ExternalAppContext -> Text -> Server PlatformAPI Source #
platformApp :: ExternalAppContext -> Text -> Application Source #