Google Drive и Sheets
Интеграция с Google-сервисами (Sheets, Drive).
curl -X GET "https://loading/api/v1/integrations/google/callback"curl -X POST "https://loading/api/v1/integrations/google/disconnect"{
"success": true
}Список файлов Google Drive
В: header
Параметры запроса
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/google/files"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}curl -X GET "https://loading/api/v1/integrations/google/health"{
"service": "string",
"status": "string"
}Импортировать Google Doc как SmartDoc
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/google/import/document" \ -H "Content-Type: application/json" \ -d '{ "fileId": "string" }'{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Импортировать Google Sheet в реестр
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/google/import/sheet" \ -H "Content-Type: application/json" \ -d '{ "fileId": "string", "registryTypeId": "string" }'{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Создать реестр из Google Sheet
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/google/import/sheet/create-registry" \ -H "Content-Type: application/json" \ -d '{ "columnMapping": { "property1": "string", "property2": "string" }, "fields": [ { "dataType": "string", "key": "string", "name": "string" } ], "fileId": "string", "registryName": "string" }'{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Предпросмотр Google Sheet
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/google/import/sheet/preview" \ -H "Content-Type: application/json" \ -d '{ "fileId": "string" }'{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Получить URL для авторизации в Google
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
curl -X POST "https://loading/api/v1/integrations/google/oauth/prepare" \ -H "Content-Type: application/json" \ -d '{}'{
"url": "string"
}curl -X GET "https://loading/api/v1/integrations/google/status"{
"connected": true,
"status": "connected"
}Синхронизировать реестр с Google Sheet
В: header
Параметры пути
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/google/sync/string" \ -H "Content-Type: application/json" \ -d '{}'{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Предпросмотр синхронизации реестра
В: header
Параметры пути
Тело ответа
application/json
curl -X GET "https://loading/api/v1/integrations/google/sync/string/preview"{
"property1": null,
"property2": null
}Загрузить файл в Google Drive
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/google/upload" \ -H "Content-Type: application/json" \ -d '{ "contentBase64": "string", "fileName": "string" }'{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}