pandoc-server-0.1.0.9: Pandoc document conversion as an HTTP servant-server
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Pandoc.Server

Documentation

type API = (ReqBody '[JSON] Params :> Post '[OctetStream] ByteString) :<|> ((ReqBody '[JSON] Params :> Post '[PlainText] Text) :<|> ((ReqBody '[JSON] Params :> Post '[JSON] Output) :<|> (("batch" :> (ReqBody '[JSON] [Params] :> Post '[JSON] [Output])) :<|> (("babelmark" :> (QueryParam' '[Required] "text" Text :> (QueryParam "from" Text :> (QueryParam "to" Text :> (QueryFlag "standalone" :> Get '[JSON] Value))))) :<|> ("version" :> Get '[PlainText, JSON] Text))))) Source #

data ServerOpts Source #

Constructors

ServerOpts 

Instances

Instances details
Show ServerOpts Source # 
Instance details

Defined in Text.Pandoc.Server

data Params Source #

Constructors

Params 

Instances

Instances details
FromJSON Params Source # 
Instance details

Defined in Text.Pandoc.Server

ToJSON Params Source # 
Instance details

Defined in Text.Pandoc.Server

Show Params Source # 
Instance details

Defined in Text.Pandoc.Server

Default Params Source # 
Instance details

Defined in Text.Pandoc.Server

Methods

def :: Params #

newtype Blob Source #

Constructors

Blob ByteString 

Instances

Instances details
FromJSON Blob Source # 
Instance details

Defined in Text.Pandoc.Server

ToJSON Blob Source # 
Instance details

Defined in Text.Pandoc.Server

Show Blob Source # 
Instance details

Defined in Text.Pandoc.Server

Methods

showsPrec :: Int -> Blob -> ShowS #

show :: Blob -> String #

showList :: [Blob] -> ShowS #

Eq Blob Source # 
Instance details

Defined in Text.Pandoc.Server

Methods

(==) :: Blob -> Blob -> Bool #

(/=) :: Blob -> Blob -> Bool #