gargantext-0.0.7.1.5.3: Search, map, share
Copyright(c) CNRS 2017
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gargantext.API.Node.File

Description

 

Documentation

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

newtype Contents #

Constructors

Contents ByteString 

newtype BSResponse #

Constructors

BSResponse ByteString 

Instances

Instances details
Generic BSResponse # 
Instance details

Defined in Gargantext.API.Node.File

Associated Types

type Rep BSResponse :: Type -> Type #

ToSchema BSResponse # 
Instance details

Defined in Gargantext.API.Node.File

MimeRender RESPONSE BSResponse # 
Instance details

Defined in Gargantext.API.Node.File

MimeUnrender RESPONSE BSResponse # 
Instance details

Defined in Gargantext.API.Node.File

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

type Rep BSResponse # 
Instance details

Defined in Gargantext.API.Node.File

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

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

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

addWithFile #

Arguments

:: (HasSettings env, FlowCmdM env err m, MonadJobStatus m) 
=> AuthenticatedUser

The logged-in user

-> NodeId 
-> NewWithFile 
-> JobHandle m 
-> m ()