Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
154
Issues
154
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
9ec52356
Commit
9ec52356
authored
Apr 05, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PHYLO.API] REST GET.
parent
87fcabcc
Pipeline
#337
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
Node.hs
src/Gargantext/API/Node.hs
+15
-1
API.hs
src/Gargantext/Viz/Phylo/API.hs
+1
-1
No files found.
src/Gargantext/API/Node.hs
View file @
9ec52356
...
...
@@ -143,8 +143,11 @@ type NodeAPI a = Get '[JSON] (Node a)
:<|>
"list"
:>
TableNgramsApi
:<|>
"listGet"
:>
TableNgramsApiGet
:<|>
"pairing"
:>
PairingApi
-- VIZ
:<|>
"chart"
:>
ChartApi
:<|>
"phylo"
:>
PhyloAPI
:<|>
"favorites"
:>
FavApi
:<|>
"documents"
:>
DocsApi
:<|>
"search"
:>
Summary
"Node Search"
...
...
@@ -188,6 +191,8 @@ nodeAPI p uId id
:<|>
getPairing
id
:<|>
getChart
id
:<|>
phyloAPI
id
:<|>
favApi
id
:<|>
delDocs
id
:<|>
searchIn
id
...
...
@@ -311,6 +316,15 @@ graphAPI nId = do
liftIO
$
set
graph_metadata
(
Just
metadata
)
<$>
cooc2graph
myCooc
type
PhyloAPI
=
Summary
"Phylo API"
:>
QueryParam
"param"
PhyloQueryView
:>
Get
'[
J
SON
]
PhyloView
phyloAPI
::
NodeId
->
GargServer
PhyloAPI
phyloAPI
n
q
=
pure
$
getPhylo
n
q
instance
HasNodeError
ServantErr
where
_NodeError
=
prism'
mk
(
const
Nothing
)
-- $ panic "HasNodeError ServantErr: not a prism")
where
...
...
src/Gargantext/Viz/Phylo/API.hs
View file @
9ec52356
...
...
@@ -21,7 +21,7 @@ import Gargantext.Prelude
import
Gargantext.Viz.Phylo
import
Gargantext.Viz.Phylo.Example
getPhylo
::
PhyloId
->
PhyloQueryView
->
PhyloView
getPhylo
::
PhyloId
->
Maybe
PhyloQueryView
->
PhyloView
getPhylo
_phyloId
_phyloQueryView
=
phyloView
postPhylo
::
CorpusId
->
Maybe
ListId
->
PhyloQueryBuild
->
Phylo
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment