Copyright | (c) CNRS 2017-Present |
---|---|
License | AGPL + CECILL v3 |
Maintainer | team@gargantext.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Gargantext.Core.Viz.Phylo.API
Contents
Description
Synopsis
- type PhyloAPI = (Summary "Phylo API" :> GetPhylo) :<|> PostPhylo
- phyloAPI :: PhyloId -> GargServer PhyloAPI
- newtype SVG = SVG ByteString
- data PhyloData = PhyloData {}
- type GetPhylo = QueryParam "listId" ListId :> (QueryParam "level" Level :> (QueryParam "minSizeBranch" MinSizeBranch :> Get '[JSON] PhyloData))
- getPhylo :: PhyloId -> GargServer GetPhylo
- getPhyloDataJson :: PhyloId -> GargNoServer (GraphData, PhyloConfig)
- type PostPhylo = QueryParam "listId" ListId :> Post '[JSON] NodeId
- postPhylo :: PhyloId -> GargServer PostPhylo
Documentation
phyloAPI :: PhyloId -> GargServer PhyloAPI #
Constructors
SVG ByteString |
Instances
Show SVG # | |
ToSchema SVG # | |
Defined in Gargantext.Core.Viz.Phylo.API Methods declareNamedSchema :: Proxy SVG -> Declare (Definitions Schema) NamedSchema # | |
Accept SVG # | |
Defined in Gargantext.Core.Viz.Phylo.API | |
MimeRender SVG SVG # | |
Defined in Gargantext.Core.Viz.Phylo.API Methods mimeRender :: Proxy SVG -> SVG -> ByteString # | |
MimeUnrender SVG SVG # | |
Defined in Gargantext.Core.Viz.Phylo.API Methods mimeUnrender :: Proxy SVG -> ByteString -> Either String SVG # mimeUnrenderWithType :: Proxy SVG -> MediaType -> ByteString -> Either String SVG # |
This type is emitted by the backend and the frontend expects to deserialise it
as a PhyloJSON
. see module JSON
of the
'purescript-gargantext' package.
Constructors
PhyloData | |
Fields
|
Instances
type GetPhylo = QueryParam "listId" ListId :> (QueryParam "level" Level :> (QueryParam "minSizeBranch" MinSizeBranch :> Get '[JSON] PhyloData)) #
getPhylo :: PhyloId -> GargServer GetPhylo #
TODO Add real text processing Fix Filter parameters TODO fix parameters to default config that should be in Node
getPhyloDataJson :: PhyloId -> GargNoServer (GraphData, PhyloConfig) #
postPhylo :: PhyloId -> GargServer PostPhylo #
Orphan instances
ToSchema Value # | |
Methods declareNamedSchema :: Proxy Value -> Declare (Definitions Schema) NamedSchema # |