Files
services/space/examples.json
2021-12-09 10:56:42 +00:00

92 lines
1.8 KiB
JSON

{
"create": [
{
"title": "Create an object",
"run_check": false,
"request": {
"object": "<file bytes>",
"name": "images/file.jpg",
"visibility": "public"
},
"response": {
"url": "https://example.com/foo/bar/file.jpg"
}
}
],
"update": [
{
"title": "Update an object",
"run_check": false,
"request": {
"object": "<file bytes>",
"name": "images/file.jpg",
"visibility": "public"
},
"response": {
"url": "https://example.com/foo/bar/images/file.jpg"
}
}
],
"delete": [
{
"title": "Delete an object",
"run_check": false,
"request": {
"name": "images/file.jpg"
},
"response": {
}
}
],
"list": [
{
"title": "List objects with prefix",
"run_check": false,
"request": {
"prefix": "images/"
},
"response": {
"objects": [
{
"name": "images/file.jpg",
"modified": 1638549232,
"url": "https://example.com/foo/bar/images/file.jpg"
},
{
"name": "images/file2.jpg",
"modified": 1638547232,
"url": "https://example.com/foo/bar/images/file2.jpg"
}
]
}
}
],
"head": [
{
"title": "Head an object",
"run_check": false,
"request": {
"name": "images/file.jpg"
},
"response": {
"name": "images/file.jpg",
"modified": 1638549232,
"created": 1638546232,
"url": "https://example.com/foo/bar/images/file.jpg",
"visibility": "public"
}
}
],
"read": [
{
"title": "Read an object",
"run_check": false,
"request": {
"name": "images/file.jpg"
},
"response": {
}
}
]
}