| Copyright | (c) CNRS 2017 |
|---|---|
| License | AGPL + CECILL v3 |
| Maintainer | team@gargantext.org |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Gargantext.API.Node.File
Description
Documentation
Instances
| Accept RESPONSE # | |
Defined in Gargantext.API.Node.File | |
| MimeRender RESPONSE BSResponse # | |
Defined in Gargantext.API.Node.File Methods mimeRender :: Proxy RESPONSE -> BSResponse -> ByteString # | |
| MimeUnrender RESPONSE BSResponse # | |
Defined in Gargantext.API.Node.File Methods mimeUnrender :: Proxy RESPONSE -> ByteString -> Either String BSResponse # mimeUnrenderWithType :: Proxy RESPONSE -> MediaType -> ByteString -> Either String BSResponse # | |
| HasSwagger (WithCustomErrorScheme GargAPI) # | |
Defined in Gargantext.API.Routes | |
type FileApi = Summary "File download" :> ("download" :> Get '[RESPONSE] (Headers '[Header "Content-Type" Text] BSResponse)) #
fileApi :: NodeId -> GargServer FileApi #
Constructors
| Contents ByteString |
newtype BSResponse #
Constructors
| BSResponse ByteString |
Instances
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)) #
Arguments
| :: AuthenticatedUser | The logged-in user |
| -> NodeId | |
| -> ServerT FileAsyncApi (GargM Env BackendInternalError) |
Arguments
| :: (HasSettings env, FlowCmdM env err m, MonadJobStatus m) | |
| => AuthenticatedUser | The logged-in user |
| -> NodeId | |
| -> NewWithFile | |
| -> JobHandle m | |
| -> m () |