gargantext-0.0.4.9.5: Search, map, share
Safe HaskellNone
LanguageHaskell2010

Gargantext.API.Node.File

Documentation

type FileApi = Summary "File download" :> ("download" :> Get '[RESPONSE] (Headers '[Header "Content-Type" Text] BSResponse)) Source #

newtype Contents Source #

Constructors

Contents ByteString 

newtype BSResponse Source #

Constructors

BSResponse ByteString 

Instances

Instances details
Generic BSResponse Source # 
Instance details

Defined in Gargantext.API.Node.File

Associated Types

type Rep BSResponse :: Type -> Type #

ToSchema BSResponse Source # 
Instance details

Defined in Gargantext.API.Node.File

MimeRender RESPONSE BSResponse Source # 
Instance details

Defined in Gargantext.API.Node.File

type Rep BSResponse Source # 
Instance details

Defined in Gargantext.API.Node.File

type Rep BSResponse = D1 ('MetaData "BSResponse" "Gargantext.API.Node.File" "gargantext-0.0.4.9.5-IFz7nHafad4HfDNkPsR1x8" 'True) (C1 ('MetaCons "BSResponse" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

fileDownload :: (HasSettings env, FlowCmdM env err m) => UserId -> NodeId -> m (Headers '[Header "Content-Type" Text] BSResponse) Source #

type FileAsyncApi = Summary "File Async Api" :> ("file" :> ("add" :> AsyncJobs JobLog '[FormUrlEncoded] NewWithFile JobLog)) Source #

addWithFile :: (HasSettings env, FlowCmdM env err m) => UserId -> NodeId -> NewWithFile -> (JobLog -> m ()) -> m JobLog Source #