Copyright | (c) CNRS 2017 |
---|---|
License | AGPL + CECILL v3 |
Maintainer | team@gargantext.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
Instances
Accept RESPONSE # | |
Defined in Gargantext.API.Node.File | |
MimeRender RESPONSE BSResponse # | |
Defined in Gargantext.API.Node.File mimeRender :: Proxy RESPONSE -> BSResponse -> ByteString # | |
MimeUnrender RESPONSE BSResponse # | |
Defined in Gargantext.API.Node.File 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 #
newtype BSResponse #
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)) #
:: AuthenticatedUser | The logged-in user |
-> NodeId | |
-> ServerT FileAsyncApi (GargM Env BackendInternalError) |
:: (HasSettings env, FlowCmdM env err m, MonadJobStatus m) | |
=> AuthenticatedUser | The logged-in user |
-> NodeId | |
-> NewWithFile | |
-> JobHandle m | |
-> m () |