1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00

S3: Помещение и удаление объекта, заголовки в выводе

This commit is contained in:
Anton
2024-11-15 21:52:07 +03:00
parent 74177d69b1
commit 6c327254e3
35 changed files with 3527 additions and 3240 deletions
+3 -1
View File
@@ -58,13 +58,15 @@ This library uses its own response format to provide data received from the serv
{
"status": 200,
"response": {}
"response": {},
"headers": {}
}
```
+ 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 **headers** field contains the headers from the original response
The response was modified to JSON to simplify its usage, as the original XML format was more complex to work with
+3 -1
View File
@@ -58,12 +58,14 @@ sidebar_class_name: S3
{
"status": 200,
"response": {}
"response": {},
"headers": {}
}
```
+ В поле **status** записывается код состояния HTTP-ответа
+ В поле **response** помещается тело оригинального ответа S3, предварительно преобразованное из XML в JSON
+ В поле **headers** помещаются заголовки из оригинального ответа
Это сделано для упрощения работы с библиотекой, так как формат XML более громоздок и сложен в работе, по сравнению с JSON
@@ -1,8 +0,0 @@
{
"status": 200,
"response": {
"VersioningConfiguration": {
"Status": "Enabled"
}
}
}
@@ -1,8 +0,0 @@
{
"status": 200,
"response": {
"VersioningConfiguration": {
"Status": "Enabled"
}
}
}
@@ -1,31 +0,0 @@
{
"status": 200,
"response": {
"ListAllMyBucketsResult": {
"Owner": {
"ID": "02d6176db174dc93cb1b899f7c6078f08654445fe8cf1b6ce98d8855f66bdbf4",
"DisplayName": "minio"
},
"Buckets": {
"Bucket": [
{
"Name": "newbucket2",
"CreationDate": "2024-11-13T18:59:09.139Z"
},
{
"Name": "opi-dirbucket3",
"CreationDate": "2024-11-15T11:13:55.166Z"
},
{
"Name": "opi-gpbucket3",
"CreationDate": "2024-11-15T11:13:57.731Z"
},
{
"Name": "opi-newbucket2",
"CreationDate": "2024-11-14T06:04:12.769Z"
}
]
}
}
}
}
@@ -1,7 +0,0 @@
{
"URL": "storage-155.s3hoster.by",
"AccessKey": "BRN5RKJE67YCVDZRRQVI",
"SecretKey": "***",
"Region": "BTC",
"Service": "s3"
}
@@ -1,19 +0,0 @@
{
"status": 200,
"response": {
"Tagging": {
"TagSet": {
"Tag": [
{
"Key": "MyTag2",
"Value": "AnotherOne"
},
{
"Key": "MyTag1",
"Value": "SomeValue"
}
]
}
}
}
}
@@ -1,19 +0,0 @@
{
"status": 200,
"response": {
"Tagging": {
"TagSet": {
"Tag": [
{
"Key": "MyTag1",
"Value": "SomeValue"
},
{
"Key": "MyTag2",
"Value": "AnotherOne"
}
]
}
}
}
}
@@ -1,4 +0,0 @@
{
"status": 404,
"response": {}
}
@@ -1,4 +0,0 @@
{
"status": 200,
"response": {}
}
@@ -1,4 +0,0 @@
{
"status": 200,
"response": {}
}
@@ -1,4 +0,0 @@
{
"status": 200,
"response": {}
}
@@ -1,4 +0,0 @@
{
"status": 204,
"response": {}
}
@@ -1,4 +0,0 @@
{
"status": 204,
"response": {}
}
@@ -1,4 +0,0 @@
{
"status": 204,
"response": {}
}
@@ -1 +0,0 @@
НЕ JSON: Соответствие
@@ -1,4 +0,0 @@
{
"status": 204,
"response": {}
}
@@ -1,4 +0,0 @@
{
"status": 204,
"response": {}
}
@@ -1,4 +0,0 @@
{
"status": 200,
"response": {}
}
@@ -1,4 +0,0 @@
{
"status": 200,
"response": {}
}
@@ -1,4 +0,0 @@
{
"status": 200,
"response": {}
}
@@ -1,4 +0,0 @@
{
"status": 200,
"response": {}
}