This API provide some features to manipulate dictionaries in africans languages
https://apis.ntealan.net/ntealan/articles/{dictionary_id}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id |
Parameter | Type | Description |
---|---|---|
Accept | mimeType | List of accepted MimeTypes |
X-Access-Token | string | Authentication token |
{ | |
"article": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
201 | Article created | Article content is correctly created of current dictionary exists |
401 | Unauthorized to create Article | Only admin user with valid token can create article of the current dictionary |
404 | Article content not found | Article content of current dictionary does not exists or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id |
Parameter | Type | Optional | Description |
---|---|---|---|
article_id | integer | Article Id |
Parameter | Type | Description |
---|---|---|
X-Access-Token | string | Authentication token |
{ | |
"dictionary": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
200 | Dictionary deleted | Dictionary with the specified id is correctly deleted |
401 | Unauthorized to delete dictionary | Only admin user with valid token can delete a dictionary |
404 | Dictionary content not found | Dictionary content does not exists or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}/{article_id}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}/{article_id}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
article_id | integer | Article Id |
Parameter | Type | Description |
---|---|---|
X-Access-Token | string | Authentication token |
{ | |
"article": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
200 | Article deleted | Article content is correctly deleted of current dictionary exists |
401 | Unauthorized to delete Article | Only admin user with valid token can delete article of the current dictionary |
404 | Article content not found | Article content of current dictionary does not exists or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles?search={searchTerm}
https://apis.ntealan.net/ntealan/dictionaries/articles?search={searchTerm}
Parameter | Type | Optional | Description |
---|---|---|---|
searchTerm | string | Content of article to search |
{ | |
"search": [ | |
ArticleObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Articles found | Articles of dictionaries exists |
206 | Articles not found (partial content) | Articles of dictionaries do not exist |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}?search={searchTerm}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}?search={searchTerm}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
searchTerm | string | Content of article to search |
{ | |
"search": [ | |
ArticleObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Articles found | Articles of current dictionary exists |
206 | Articles not found (partial content) | Articles of current dictionary does not exist or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}/{article_id}?form
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}/{article_id}?form
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
article_id | integer | Article Id |
{ | |
"form": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
200 | Article form found | Article form of current dictionary exists |
206 | Article form not found | Article form of current dictionary does not exists or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles?html&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles?html&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"contents": [ | |
ArticleObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article html found | HTLM version of article exists in some dictionaries |
206 | Article html not found | HTML version of article do not exist in all dictionaries |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}?html&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}?html&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Public dictionary Id | |
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"contents": [ | |
ArticleObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article html found | HTLM version of article exists in this dictionary |
206 | Article html not found | HTML version of article do not exist in this dictionary |
https://apis.ntealan.net/ntealan/articles?contents&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles?contents&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"contents": [ | |
ArticleObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article contents found | Article contents exists in some dictionaries |
206 | Article contents not found (partial content) | Contents of articles do not exist in all dictionaries |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}?limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/articles/{dictionary_id}?limit={limit}&sort={sort}&page={page_number}&{resume}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}?limit={limit}&sort={sort}&page={page_number}&{resume}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
page_number | integer | Optional | Page number to charge |
resume | boolean | Optional | Show the resume version of data |
{ | |
"articles": [ | |
ArticleObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Articles found | Articles of current dictionary exist |
200 | Articles found | Articles of current dictionary exists |
206 | Articles not found | Article of current dictionary does not exist or dictionary's id is invalid |
206 | Articles not found (partial content) | Articles of current dictionary do not exist or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles?limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/articles?limit={limit}&sort={sort}&{resume}
https://apis.ntealan.net/ntealan/dictionaries/articles?limit={limit}&sort={sort}&{resume}
Parameter | Type | Optional | Description |
---|---|---|---|
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
resume | string | Optional | Resume the content of the data |
{ | |
"articles": [ | |
ArticleObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Articles found | Articles of current dictionary exists |
206 | Articles not found (partial content) | Articles of current dictionary do not exist |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}/{article_id}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}/{article_id}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
article_id | integer | Article Id |
{ | |
"article": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
200 | Article found | Article of current dictionary exists |
206 | Article not found (partial content) | Article of current dictionary does not exist or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles?cats&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles?cats&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"categories": [ | |
CategoryObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article categories found | Article categories exists in some dictionaries |
206 | Article categories not found (partial content) | Categories of articles do not exist in all dictionaries |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}?cats&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}?cats&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"categories": [ | |
CategoryObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article categories found | Article categories exists for current dictionary |
206 | Article categories not found (pârtial content) | Article categories do not exist in current dictionary |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}/{article_id}?category
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}/{article_id}?category
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
article_id | integer | Article Id |
{ | |
"category": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
200 | Article category found | Article category of current dictionary exists |
206 | Article category not found | Article category of current dictionary does not exists or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}/{article_id}?class
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}/{article_id}?class
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
article_id | integer | Article Id |
{ | |
"class": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
200 | Article class found | Article class of current dictionary exists |
206 | Article class not found | Article class of current dictionary does not exists or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles?classes&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles?classes&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"classes": [ | |
ClasssObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article classes found | Article classes exists in some dictionaries |
206 | Article classes not found (partial content) | Classes of articles do not exist in all dictionaries |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}?classes&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}?classes&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"classes": [ | |
ClasssObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article classes found | Article classes exists for current dictionary |
206 | Article classes not found (partial content) | Classes of articles do not exist in current dictionary |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}/{article_id}?content
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}/{article_id}?content
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
article_id | integer | Article Id |
{ | |
"article": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
200 | Article content found | Article content of current dictionary exists |
206 | Article content not found | Article content of current dictionary does not exists or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}?contents&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}?contents&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"contents": [ | |
ArticleObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article contents found | Article contents exists for current dictionary |
206 | Article contents not found (partial content) | Article contents do not exist in current dictionary |
https://apis.ntealan.net/ntealan/articles?entries&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles?entries&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"entries": [ | |
EntryObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article entries found | Article entries exists in some dictionaries |
206 | Article entries not found (partial content) | Entries of articles do not exist in all dictionaries |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}?entries&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}?entries&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"entries": [ | |
EntryObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article entries found | Article entries exists for current dictionary |
206 | Article entries not found (partial content) | Entries of articles do not exist in current dictionary |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}/{article_id}?entry
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}/{article_id}?entry
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
article_id | integer | Article Id |
{ | |
"entry": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
200 | Article found | Article entry of current dictionary exists |
404 | Article entry not found | Article entry of current dictionary does not exists or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}/{article_id}?example
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}/{article_id}?example
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
article_id | integer | Article Id |
{ | |
"form": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
200 | Article example found | Article example of current dictionary exists |
206 | Article example not found | Article example of current dictionary does not exists or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles?examples&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles?examples&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"examples": [ | |
ExampleObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article examples found | Article examples exists in some dictionaries |
206 | Article examples not found (partial content) | Examplesof articles do not exist in all dictionaries |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}?examples&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}?examples&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"examples": [ | |
ExampleObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article examples found | Article examples exists for current dictionary |
206 | Article examples not found (partial content) | Article examples do not exist in current dictionary |
https://apis.ntealan.net/ntealan/articles?forms&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles?forms&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"forms": [ | |
FormObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article forms found | Article forms exists in some dictionaries |
206 | Article forms not found (partial content) | Article forms do not exist in all dictionaries |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}?forms&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}?forms&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"forms": [ | |
FormObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article forms found | Article forms exists for cuurent dictionay |
206 | Article forms not found (partial content) | Article forms do not exist in current dictionary |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}/{article_id}?trad={lang}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}/{article_id}?trad={lang}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
article_id | integer | Article Id | |
lang | enum | List of accept languages |
{ | |
"translate": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
200 | Article translate found | Article translate of current dictionary exists |
206 | Article translate not found | Article translate of current dictionary does not exists or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles?trads={lang}&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles?trads={lang}&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
lang | enum | List of accept languages (ko, fr, es, en) | |
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"translation": [ | |
TranslateObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article translations found | Article translations exists in some dictionaries |
206 | Article translations not found (partial content) | Translations of articles do not exist in all dictionaries |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}?trads={lang}&limit={limit}&sort={sort}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}?trads={lang}&limit={limit}&sort={sort}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
lang | enum | List of accept languages | |
limit | integer | Optional | Limit range of articles to return |
sort | string | Optional | Sort direction of results (ASC or DESC) |
{ | |
"translation": [ | |
TranslateObject | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Article translations found | Article translations exists for current dictionary |
206 | Article translations not found (partial content) | Article translations do not exist in current dictionary |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}/{article_id}?type
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}/{article_id}?type
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
article_id | integer | Article Id |
{ | |
"type": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
200 | Article type found | Article type of current dictionary exists |
206 | Article not found (partial content) | Article type of current dictionary does not exist or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/articles/{dictionary_id}/{article_id}
https://apis.ntealan.net/ntealan/dictionaries/articles/{dictionary_id}/{article_id}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id | |
article_id | integer | Article Id |
Parameter | Type | Description |
---|---|---|
Accept | mimeType | List of accepted MimeTypes |
X-Access-Token | string | Authentication token |
{ | |
"article": { | |
"type": any | |
} | |
} |
Code | Message | Description |
---|---|---|
201 | Article updated | Article content is correctly updated of current dictionary exists |
401 | Unauthorized to update Article | Only admin user with token can update article of the current dictionary |
404 | Article content not found | Article content of current dictionary does not exists or dictionary's id is invalid |
https://apis.ntealan.net/ntealan/comments/{dictionary_id}?page={page_number}&{resume}
https://apis.ntealan.net/ntealan/dictionaries/comments/{dictionary_id}?page={page_number}&{resume}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Public dictionary Id | |
page_number | integer | Optional | Page number to charge |
resume | boolean | Optional | Show the resume version of data |
Parameter | Type | Optional | Description |
---|---|---|---|
article_id | integer | Public article Id |
Parameter | Type | Description |
---|---|---|
X-Access-Token | string | Authentication token |
{ | |
"comments": Comment | Comment data |
} |
Code | Message | Description |
---|---|---|
200 | Comments found | Comments are found in articles in this dictionary |
206 | Comment Not Found | Comments are not found in articles in this dictionary |
https://apis.ntealan.net/ntealan/comments?page={page_number}&{resume}
https://apis.ntealan.net/ntealan/dictionaries/comments?page={page_number}&{resume}
Parameter | Type | Optional | Description |
---|---|---|---|
page_number | integer | Optional | Page number to charge |
resume | boolean | Optional | Show the resume version of data |
Parameter | Type | Description |
---|---|---|
X-Access-Token | string | Authentication token |
{ | |
"comments": Comment | Comment data |
} |
Code | Message | Description |
---|---|---|
200 | Comments found | Comments found in articles of somes dictionaries |
206 | Comment Not Found | Comments are not found in articles of all dictionaries |
https://apis.ntealan.net/ntealan/comments/{dictionary_id}/{article_id}?page={page_number}&{resume}
https://apis.ntealan.net/ntealan/dictionaries/comments/{dictionary_id}/{article_id}?page={page_number}&{resume}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Public dictionary Id | |
article_id | integer | Public article Id | |
page_number | integer | Optional | Page number to charge |
resume | boolean | Optional | Show the resume version of data |
Parameter | Type | Description |
---|---|---|
X-Access-Token | string | Authentication token |
{ | |
"comments": Comment | Comment data |
} |
Code | Message | Description |
---|---|---|
200 | Comments found | Comment found |
206 | Forbidden | Comment found |
https://apis.ntealan.net/ntealan/login
https://apis.ntealan.net/ntealan/core/login
Parameter | Type | Description |
---|---|---|
Basic-Auth | object | User informations login |
{ | |
"token": string, | String authentification token of user |
"user": User, | Informations of user |
"user": User, | User data |
"validity": string | Limited time of authentification token of user (30 minutes) |
} |
Code | Message | Description |
---|---|---|
200 | Token generated | Get a Authentification token for user |
401 | Unauthorized | User data no match |
403 | Forbidden | Current user can not be logging |
403 | Forbidden | Current user can not be logging ! invalid user informations |
https://apis.ntealan.net/ntealan/metadata
https://apis.ntealan.net/ntealan/dictionaries/metadata
Parameter | Type | Description |
---|---|---|
X-Access-Token | string | Authentication token |
{ | |
"metadata": Metadata | |
} |
Code | Message | Description |
---|---|---|
201 | Metadata created | Create new metadata of a dictionary |
401 | Unauthorized to create Metadata | Only admin user with valid token can create metadata of a dictionary |
403 | Forbidden | Metadata can not be adding to this dictionary. May be already exist |
https://apis.ntealan.net/ntealan/metadata
https://apis.ntealan.net/ntealan/dictionaries/metadata
Parameter | Type | Description |
---|---|---|
X-Access-Token | string | Authentication token |
{ | |
"metadata": [ | |
Metadata | |
], | |
"status": integer, | |
"total": integer | |
} |
Code | Message | Description |
---|---|---|
200 | Metadata found | List of metadata found |
401 | Unauthorized to get metadata | Only admin user with valid token can get all metadata |
403 | Forbidden | Current user can not be getting metadata |
404 | Metadata not found | Metadata does not exists |
https://apis.ntealan.net/ntealan/metadata/{dictionary_id}
https://apis.ntealan.net/ntealan/dictionaries/metadata/{dictionary_id}
Parameter | Type | Optional | Description |
---|---|---|---|
dictionary_id | integer | Dictionary Id |
Parameter | Type | Description |
---|---|---|
X-Access-Token | string | Authentication token |
{ | |
"metadata": Metadata | |
} |
Code | Message | Description |
---|---|---|
200 | Metadata found | List of metadata found |
401 | Unauthorized to get metadata | Only admin user with valid token can get a metadata |
403 | Forbidden | Current user can not be getting metadata |
404 | Metadata not found | Metadata does not exists |
https://apis.ntealan.net/ntealan/users
Parameter | Type | Description |
---|---|---|
X-Access-Token | string | Authentication token |
Code | Message | Description |
---|---|---|
201 | User created | A new user is created |
401 | Unauthorized to get user | Only admin user with valid token can delete an user |
403 | Forbidden | Current user informations can not be use |
https://apis.ntealan.net/ntealan/users
https://apis.ntealan.net/ntealan/users?page={page_number}&{resume}
Parameter | Type | Optional | Description |
---|---|---|---|
page_number | integer | Optional | Page number to charge |
resume | boolean | Optional | Show the resume version of data |
Parameter | Type | Description |
---|---|---|
X-Access-Token | string | Authentication token |
{ | |
"status": integer, | |
"total": integer, | |
"users": [ | |
User | |
] | |
} |
Code | Message | Description |
---|---|---|
200 | Users found | Show all users found for dictionaries |
401 | Unauthorized to get user | Only admin user with valid token can get all user |
403 | Forbidden | Current user can not be getting all users of dictionaries |
403 | Forbidden | Current user cannot get all users of dictionaries |
404 | User's id not found | User's id does not exists |
https://apis.ntealan.net/ntealan/users/{user_id}
Parameter | Type | Optional | Description |
---|---|---|---|
user_id | integer | user identifier |
Parameter | Type | Description |
---|---|---|
X-Access-Token | string | Authentication token |
{ | |
"User": User | |
} |
Code | Message | Description |
---|---|---|
200 | User found | Show properties of user found |
401 | Unauthorized to get user | Only admin user with valid token can get an user |
403 | Forbidden | Current user can not be getting a user |
404 | User's id not found | User's id does not exists |
string |
type/sous-type
{ | |
"all_raw_text": string, | Article content data |
"article": { | content of article |
"type": any | |
}, | |
"article_page": integer, | Article pagination |
"disable_article": boolean, | Article status |
"id_article": integer, | Article identifier |
"id_dico": string, | Dictionary identifier |
"like": integer, | Number of like for an article |
"public_id": string, | Article identifier |
"radical": string, | radical for an article |
"unlike": integer, | External users version of article |
"users_versions": string | External users version of article |
} |
{ | |
"category": { | Content of article category |
"type": any | |
}, | |
"id_article": integer, | Article identifier |
"id_dico": string | Dictionary identifier |
} |
{ | |
"data": { | Content of grammatical class |
"type": any | |
}, | |
"id_article": integer, | Article identifier |
"id_dico": string | Dictionary identifier |
} |
{ | |
"avatar": string, | avatar of the commentator |
"data": string, | Content data of comment |
"disable_comment": boolean, | Last update date |
"id_article": string, | Identified of article |
"id_dico": string, | Identified of dictionary |
"last_update": string, | Last update date |
"like": integer, | like comment |
"public_id": string, | Public id of comment |
"send_date": string, | Send date |
"unlike": integer, | Unlike comment |
"user_id": string, | User public id |
"username": string | User name |
} |
{ | |
"entry": { | Content of entry |
"type": any | |
}, | |
"id_article": integer, | Article identifier |
"id_dico": string | Dictionary identifier |
} |
{ | |
"content": string, | Value of translation of entry |
"lang": integer, | Target translation language |
"number": integer | Identifier of translation |
} |
{ | |
"type": any | |
} |
{ | |
"example": { | Content of article example |
"type": any | |
}, | |
"id_article": integer, | Article identifier |
"id_dico": string | Dictionary identifier |
} |
{ | |
"form": { | Content of article form |
"type": any | |
}, | |
"id_article": integer, | Article identifier |
"id_dico": string | Dictionary identifier |
} |
{ | |
"abbr_name": string, | Abreviation form of dictionary name |
"comment": string, | Comment about revision of dictionary |
"description": string, | Description of dictionary |
"id_dico": string, | Identified of dictionary |
"long_name": string, | Long version of dictionary name |
"publication": string, | Some publication sources related to dictionary |
"review_version": string, | Version of revision of dictionary |
"review_year": string, | Date of revision of dictionary (ntealan transform) |
"short_name": string, | Short version of dictionary name |
"source": string, | Source of dictionary |
"src_authors": string, | Source authors of the first version of dictionary |
"trg_authors": string | Target authors of the new version of dictionary |
} |
{ | |
"id_article": integer, | Article identifier |
"id_dico": string, | Dictionary identifier |
"trad_en": string, | Translation of article entry into english |
"trad_es": string, | Translation of article entry into spanish |
"trad_fr": string, | Translation of article entry into french |
"trad_ko": string | Translation of article entry into ko |
} |
{ | |
"address": string, | Adresse of the user |
"for_lang": string, | Foreigner language of the user |
"name": string, | Name of the user |
"nat_lang": string, | Mother toungue of the user |
"native_lang": string, | Mother toungue of the user |
"public_id": integer, | User identifier |
"username": string | Username of the user |
} |
{ | |
"forme": string, | Form of dialectal variant |
"prefix": string, | Prefix of dialectal variant |
"radical": string, | Radical of dialectal variant |
"suffix": string, | Suffix of dialectal variant |
"type": string | Identifier of dialectal variant |
} |