Copyright | (c) CNRS 2017-Present |
---|---|
License | AGPL + CECILL v3 |
Maintainer | team@gargantext.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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 #
Instances
Show SVG # | |
ToSchema SVG # | |
Defined in Gargantext.Core.Viz.Phylo.API | |
Accept SVG # | |
Defined in Gargantext.Core.Viz.Phylo.API | |
MimeRender SVG SVG # | |
Defined in Gargantext.Core.Viz.Phylo.API mimeRender :: Proxy SVG -> SVG -> ByteString # | |
MimeUnrender SVG SVG # | |
Defined in Gargantext.Core.Viz.Phylo.API 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.
PhyloData | |
|
Instances
Arbitrary PhyloData # | |
FromJSON PhyloData # | |
ToJSON PhyloData # | |
Defined in Gargantext.Core.Viz.Phylo.API | |
Generic PhyloData # | |
Show PhyloData # | |
Eq PhyloData # | |
ToSchema PhyloData # | |
Defined in Gargantext.Core.Viz.Phylo.API | |
HasSwagger (WithCustomErrorScheme GargAPI) # | |
Defined in Gargantext.API.Routes | |
type Rep PhyloData # | |
Defined in Gargantext.Core.Viz.Phylo.API type Rep PhyloData = D1 ('MetaData "PhyloData" "Gargantext.Core.Viz.Phylo.API" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "PhyloData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pd_corpusId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NodeId) :*: S1 ('MetaSel ('Just "pd_listId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NodeId)) :*: (S1 ('MetaSel ('Just "pd_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GraphData) :*: S1 ('MetaSel ('Just "pd_config") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PhyloConfig)))) |
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 #