Что умеет:
GET {URL-аккаунта}/api/dev/table
Замените {URL-аккаунта} на URL экземпляра КБ, например, https://demo.clientbase.ru или http://localhost:8080/.
При вызове метода укажите заголовки:
Content-Type: application/vnd.api+json
X-Auth-Token: Ваш-токен
Для получения токена пройдите авторизацию.
curl -X GET
-H 'Content-Type: application/vnd.api+json' \
-H 'X-Auth-Token: pevj1MaRq5qTUifWQ4iwVe7AcSfpGgiSCyu4T8hMfydX0Tew' \
https://apitest.clientbase.ru/api/dev/table
{
"data": [
{
"type": "table",
"attributes": {
"table_name": "Документы",
"category_id": 2,
"category_sequence_number": 11,
"full_name": "Общие документы"
},
"links": {
"self": "/api/dev/table/20"
},
"meta": {
"access": {
"create": true,
"read": false,
"update": false,
"delete": true,
"archive": true,
"bed": true,
"print": false,
"sms": false,
"send": false,
"free_sms_template": false,
"free_mail_template": false,
"standart_template": true
}
},
"id": "20"
},
...
{
"type": "table",
"attributes": {
"table_name": "Тесты",
"category_id": 40,
"category_sequence_number": 1,
"full_name": ""
},
"links": {
"self": "/api/dev/table/480"
},
"meta": {
"access": {
"create": true,
"read": true,
"update": true,
"delete": true,
"archive": true,
"bed": true,
"print": true,
"sms": true,
"send": true,
"free_sms_template": false,
"free_mail_template": false,
"standart_template": true
}
},
"id": "480"
}
],
"links": {
"self": "http://apitest.clientbase.ru/api/dev/table?page%5Blimit%5D=5"
},
"jsonapi": {
"version": "1.1"
},
"meta": {
"offset": 0,
"limit": "5",
"total": 0
}
}
200 OK (application/vnd.api+json)
либо ошибка