Safe Haskell | None |
---|---|
Language | Haskell2010 |
Gargantext.API.Node.File
Documentation
Instances
Accept RESPONSE Source # | |
Defined in Gargantext.API.Node.File | |
MimeRender RESPONSE BSResponse Source # | |
Defined in Gargantext.API.Node.File Methods mimeRender :: Proxy RESPONSE -> BSResponse -> ByteString # |
type FileApi = Summary "File download" :> ("download" :> Get '[RESPONSE] (Headers '[Header "Content-Type" Text] BSResponse)) Source #
Constructors
Contents ByteString |
newtype BSResponse Source #
Constructors
BSResponse ByteString |
Instances
Generic BSResponse Source # | |
Defined in Gargantext.API.Node.File Associated Types type Rep BSResponse :: Type -> Type # | |
ToSchema BSResponse Source # | |
Defined in Gargantext.API.Node.File Methods declareNamedSchema :: Proxy BSResponse -> Declare (Definitions Schema) NamedSchema # | |
MimeRender RESPONSE BSResponse Source # | |
Defined in Gargantext.API.Node.File Methods mimeRender :: Proxy RESPONSE -> BSResponse -> ByteString # | |
type Rep BSResponse Source # | |
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 #
fileAsyncApi :: UserId -> NodeId -> GargServer FileAsyncApi Source #
addWithFile :: (HasSettings env, FlowCmdM env err m) => UserId -> NodeId -> NewWithFile -> (JobLog -> m ()) -> m JobLog Source #