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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Christian Merten
haskell-gargantext
Commits
4404ee20
Commit
4404ee20
authored
5 years ago
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[API] enabling add with form and add list again.
parent
71fc2e41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
API.hs
src/Gargantext/API.hs
+8
-13
No files found.
src/Gargantext/API.hs
View file @
4404ee20
...
...
@@ -97,7 +97,7 @@ import qualified Data.Text.IO as T
import
qualified
Gargantext.API.Corpus.Annuaire
as
Annuaire
import
qualified
Gargantext.API.Corpus.Export
as
Export
import
qualified
Gargantext.API.Corpus.New
as
New
--
import qualified Gargantext.API.Ngrams.List as List
import
qualified
Gargantext.API.Ngrams.List
as
List
import
qualified
Paths_gargantext
as
PG
-- cabal magic build module
showAsServantErr
::
GargError
->
ServerError
...
...
@@ -300,7 +300,7 @@ type GargPrivateAPI' =
:>
TreeAPI
-- :<|> New.Upload
--
:<|> New.AddWithForm
:<|>
New
.
AddWithForm
:<|>
New
.
AddWithQuery
-- :<|> "annuaire" :> Annuaire.AddWithForm
...
...
@@ -308,16 +308,13 @@ type GargPrivateAPI' =
-- :<|> "scraper" :> WithCallbacks ScraperAPI
-- :<|> "new" :> New.Api
:<|>
"wait"
:>
Summary
"Wait test"
:>
Capture
"x"
Int
:>
WaitAPI
-- Get '[JSON] Int
-- TODO "list"
{-
:<|>
"lists"
:>
Summary
"List export API"
:>
Capture
"listId"
ListId
:>
List
.
API
-}
:<|>
"wait"
:>
Summary
"Wait test"
:>
Capture
"x"
Int
:>
WaitAPI
-- Get '[JSON] Int
-- /mv/<id>/<id>
-- /merge/<id>/<id>
...
...
@@ -407,16 +404,14 @@ serverPrivateGargAPI' (AuthenticatedUser (NodeId uid))
:<|>
withAccess
(
Proxy
::
Proxy
TreeAPI
)
Proxy
uid
<$>
PathNode
<*>
treeAPI
-- TODO access
-- :<|> addUpload
-- :<|> (\corpus -> addWithQuery corpus :<|> addWithFile corpus)
-- :<|> addCorpusWithForm (UserDBId uid)
:<|>
addCorpusWithForm
(
UserDBId
uid
)
:<|>
addCorpusWithQuery
(
RootId
(
NodeId
uid
))
-- :<|> addAnnuaireWithForm
-- :<|> New.api uid -- TODO-SECURITY
-- :<|> New.info uid -- TODO-SECURITY
:<|>
List
.
api
:<|>
waitAPI
-- :<|> List.api
addCorpusWithQuery
::
User
->
GargServer
New
.
AddWithQuery
...
...
This diff is collapsed.
Click to expand it.
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