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
199
Issues
199
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
6cb434bb
Commit
6cb434bb
authored
Dec 03, 2019
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API: use more specific names than "id" in captures
parent
62a89a42
Pipeline
#635
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
API.hs
src/Gargantext/API.hs
+15
-10
New.hs
src/Gargantext/API/Corpus/New.hs
+1
-1
No files found.
src/Gargantext/API.hs
View file @
6cb434bb
...
...
@@ -234,12 +234,13 @@ type GargPrivateAPI' =
-- Node endpoint
:<|>
"node"
:>
Summary
"Node endpoint"
:>
Capture
"id"
NodeId
:>
NodeAPI
HyperdataAny
:>
Capture
"node_id"
NodeId
:>
NodeAPI
HyperdataAny
-- Corpus endpoint
:<|>
"corpus"
:>
Summary
"Corpus endpoint"
:>
Capture
"
id"
CorpusId
:>
NodeAPI
HyperdataCorpus
:>
Capture
"
corpus_id"
CorpusId
:>
NodeAPI
HyperdataCorpus
:<|>
"corpus"
:>
Summary
"Corpus endpoint"
:>
Capture
"node1_id"
NodeId
...
...
@@ -249,7 +250,8 @@ type GargPrivateAPI' =
-- Annuaire endpoint
:<|>
"annuaire"
:>
Summary
"Annuaire endpoint"
:>
Capture
"id"
AnnuaireId
:>
NodeAPI
HyperdataAnnuaire
:>
Capture
"annuaire_id"
AnnuaireId
:>
NodeAPI
HyperdataAnnuaire
:<|>
"annuaire"
:>
Summary
"Contact endpoint"
:>
Capture
"annuaire_id"
NodeId
...
...
@@ -258,7 +260,8 @@ type GargPrivateAPI' =
-- Document endpoint
:<|>
"document"
:>
Summary
"Document endpoint"
:>
Capture
"id"
DocId
:>
"ngrams"
:>
TableNgramsApi
:>
Capture
"doc_id"
DocId
:>
"ngrams"
:>
TableNgramsApi
-- :<|> "counts" :> Stream GET NewLineFraming '[JSON] Count :> CountAPI
-- TODO-SECURITY
...
...
@@ -271,12 +274,14 @@ type GargPrivateAPI' =
-- TODO move to NodeAPI?
:<|>
"graph"
:>
Summary
"Graph endpoint"
:>
Capture
"id"
NodeId
:>
GraphAPI
:>
Capture
"graph_id"
NodeId
:>
GraphAPI
-- TODO move to NodeAPI?
-- Tree endpoint
:<|>
"tree"
:>
Summary
"Tree endpoint"
:>
Capture
"id"
NodeId
:>
TreeAPI
:>
Capture
"tree_id"
NodeId
:>
TreeAPI
:<|>
New
.
API_v2
-- :<|> "scraper" :> WithCallbacks ScraperAPI
...
...
@@ -286,9 +291,9 @@ type GargPrivateAPI' =
-- /merge/<id>/<id>
-- /rename/<id>
-- :<|> "static"
-- :<|> "list" :> Capture "id" Int :> NodeAPI
-- :<|> "ngrams" :> Capture "id" Int :> NodeAPI
-- :<|> "auth" :> Capture "id" Int :> NodeAPI
-- :<|> "list" :> Capture "
node_
id" Int :> NodeAPI
-- :<|> "ngrams" :> Capture "
node_
id" Int :> NodeAPI
-- :<|> "auth" :> Capture "
node_
id" Int :> NodeAPI
---------------------------------------------------------------------
type
SwaggerFrontAPI
=
SwaggerAPI
:<|>
FrontEndAPI
...
...
src/Gargantext/API/Corpus/New.hs
View file @
6cb434bb
...
...
@@ -133,7 +133,7 @@ deriveJSON (unPrefix "_scst_") 'ScraperStatus
type
API_v2
=
Summary
"Add to corpus endpoint"
:>
"corpus"
:>
Capture
"id"
CorpusId
:>
Capture
"
corpus_
id"
CorpusId
:>
"add"
:>
"async"
:>
ScraperAPI2
...
...
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