This repository was archived by the owner on Jun 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
API documentation
Jevgenij Dmitrijev edited this page May 26, 2017
·
2 revisions
PUT /api/v1/languages/{id}/strict
| Key | Required | Type | Example | Description |
|---|---|---|---|---|
| id | yes | string(3) | eng | Id is based on iso-639-2 standard |
| Key | Required | Type | Description |
|---|---|---|---|
| Hc-Token | yes | string(255) | Token provided by interactivesolutions/honeycomb-apps package |
| Key | Required | Type | Example | Description |
|---|---|---|---|---|
| content | optional | bool | 1 | Enable or disable content language. Which languages are available for content |
| front_end | optional | bool | 1 | Enable or disable Front End language. Which languages are available for user interface. |
| back_end | optional | bool | 1 | Enable or disable Front End language. Which languages will be available for system administrator |
Request
PUT /api/v1/languages/eng/strict
Headers
Hc-Token: 3pIUfVeqsZnJhZCPBoBnlJHoc0Ued...
Data
content: 1
Response good
Status Code: 200 OK
{
"id": "eng",
"language_family": "Indo-European",
"language": "English",
"native_name": "English",
"iso_639_1": "en",
"iso_639_2": "eng",
"front_end": 1,
"back_end": 0,
"content": 1
}Response bad
Status Code: 400 Bad Request
{
"success": false,
"id": "ERROR ID",
"message": "ERROR MESSAGE"
}