Skip to main content
Skip table of contents

Translations. VMS Client API

Returns translations for the client given the X-Client header.

This query returns the difference from the last requested version of the translations.

GET/api/v1/dictionary

Headers

Accept

application/json

X-Client

ios-cctv|android-cctv|thick-legal|web

X-UUID

unique device id

Body

languagerequired

string

Language identifier, available RU and EN

revisionrequired

int

The number of the latest requested version of the translations. If there is no number, then all transfers are given

Response

200

Successful response

JSON
{
    "language": "ru",
    "json": {
        "key": "translate"
    },
    "revision": 2,
    "keys_to_delete": [],
    "force_update": false
}

Example

JSON
curl -k --location --request GET 'https://vms.local/api/v1/dictionary?language=string&revision=int' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.