You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
Мелкие правки
This commit is contained in:
@@ -49,3 +49,22 @@ This section is dedicated to the library for working with AWS S3 API. On this pa
|
||||
```
|
||||
|
||||
The obtained structure (or JSON file) should be used to call other methods of work with S3 API (parameter `MainData`) - authorization data and additional settings of requests will be based on it
|
||||
|
||||
## Response format
|
||||
|
||||
This library uses its own response format to provide data received from the server. It looks as follows:
|
||||
|
||||
```json
|
||||
|
||||
{
|
||||
"status": 200,
|
||||
"response": {}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
+ The **status** field contains the HTTP response status code
|
||||
+ The **response** field contains the body of the original S3 response, previously converted from XML to JSON
|
||||
|
||||
|
||||
The response was modified to JSON to simplify its usage, as the original XML format was more complex to work with
|
||||
|
||||
@@ -49,3 +49,21 @@ sidebar_class_name: S3
|
||||
```
|
||||
|
||||
Полученную структуру (или JSON файл) нужно использовать для вызова других методов работы с S3 API (параметр `ОсновныеДанные`) - авторизационные даненые и дополнительные настройки запросов будут определяться на ее основе
|
||||
|
||||
## Формат ответа
|
||||
|
||||
Данная библиотека использует собственный формат ответа для предоставления данных, полученных от сервера. Он выглядит следующим образом:
|
||||
|
||||
```json
|
||||
|
||||
{
|
||||
"status": 200,
|
||||
"response": {}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
+ В поле **status** записывается код состояния HTTP-ответа
|
||||
+ В поле **response** помещается тело оригинального ответа S3, предварительно преобразованное из XML в JSON
|
||||
|
||||
Это сделано для упрощения работы с библиотекой, так как формат XML более громоздок и сложен в работе, по сравнению с JSON
|
||||
|
||||
Reference in New Issue
Block a user