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
160
Issues
160
List
Board
Labels
Milestones
Merge Requests
8
Merge Requests
8
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
8ac68c77
Commit
8ac68c77
authored
Dec 09, 2019
by
Alexandre Delanoë
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[API] Specifications proposal.
parent
996c7d67
Pipeline
#656
failed with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
4 deletions
+78
-4
README.md
README.md
+78
-4
No files found.
README.md
View file @
8ac68c77
# Gargantext Haskell
# Gargantext Instance, Backend
[
Release soon, help welcome
]
## About this project
Gargantext is a collaborative web platform for the exploration of sets
of unstructured documents. It combines tools from natural language
processing, text-mining, complex networks analysis and interactive data
Gargantext is a collaborative web protocol for the exploration of sets
of unstructured texts.
Scientificatlly, it combines tools from natural language processing,
text-mining, complex networks analysis and interactive data
visualization to pave the way toward new kinds of interactions with your
digital corpora.
Technically, there is a
[
client
](
#gargantext-purescript
)
which connects
to the instance. If the client is try to be ergonomic, it only ask for
the instance API, either locally or remote.
This software is a free software, developed by the CNRS Complex Systems
Institute of Paris Île-de-France (ISC-PIF) and its partners.
## Public Rest API for Gargantext
## General API Information
*
The base endpoint is:
**https://api.gargantext.org**
*
All endpoints return either a JSON object or array.
*
Data is returned in
**ascending**
order. Oldest first, newest last.
*
All time and timestamp related fields are in
**milliseconds**
.
## HTTP Return Codes
*
HTTP
`4XX`
return codes are used for malformed requests;
the issue is on the sender's side.
*
HTTP
`403`
return code is used when the WAF Limit (Web Application Firewall) has been violated.
*
HTTP
`429`
return code is used when breaking a request rate limit.
*
HTTP
`418`
return code is used when an IP has been auto-banned for continuing to send requests after receiving
`429`
codes.
*
HTTP
`5XX`
return codes are used for internal errors; the issue is on
Binance's side.
It is important to
**NOT**
treat this as a failure operation; the execution status is
**UNKNOWN**
and could have been a success.
## Error Codes
*
Any endpoint can return an ERROR
Sample Payload below:
```
javascript
{
"code"
:
-
1121
,
"msg"
:
"Invalid symbol."
}
```
## General Information on Endpoints
*
For
`GET`
endpoints, parameters must be sent as a
`query string`
.
*
For
`POST`
,
`PUT`
, and
`DELETE`
endpoints, the parameters may be sent as a
`query string`
or in the
`request body`
with content type
`application/x-www-form-urlencoded`
. You may mix parameters between both the
`query string`
and
`request body`
if you wish to do so.
*
Parameters may be sent in any order.
*
If a parameter sent in both the
`query string`
and
`request body`
, the
`query string`
parameter will be used.
# Endpoint security type
*
Each endpoint has a security type that determines the how you will
interact with it. This is stated next to the NAME of the endpoint.
*
If no security type is stated, assume the security type is NONE.
*
API-keys are passed into the Rest API via the
`X-GARG-APIKEY`
header.
*
API-keys and secret-keys
**are case sensitive**
.
*
API-keys can be configured to only access certain types of secure endpoints.
For example, one API-key could be used for WRITE only, while another API-key
can access (READ) everything except for WRITE routes.
*
By default, API-keys can access all secure routes.
Security Type | Description
------------ | ------------
NONE | Endpoint can be accessed freely.
WRITE | Endpoint requires sending a valid API-Key and signature.
USER_DATA | Endpoint requires sending a valid API-Key and signature.
USER_TEXT | Endpoint requires sending a valid API-Key.
TEXT_DATA | Endpoint requires sending a valid API-Key.
*
`WRITE`
and
`USER_DATA`
endpoints are
`SIGNED`
endpoints.
## Installation
Disclaimer: this project is still on development, this is work in
...
...
delanoe
@anoe
mentioned in issue
#23 (closed)
·
Dec 09, 2019
mentioned in issue
#23 (closed)
mentioned in issue #23
Toggle commit list
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