mirror of
https://github.com/kevin-DL/services.git
synced 2026-03-11 05:34:56 +00:00
Space API (#290)
This commit is contained in:
@@ -1,13 +1,90 @@
|
||||
{
|
||||
"vote": [
|
||||
"create": [
|
||||
{
|
||||
"title": "Vote for the API",
|
||||
"title": "Create an object",
|
||||
"run_check": false,
|
||||
"request": {
|
||||
"message": "Launch it!"
|
||||
"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": {
|
||||
"message": "Thanks for the vote!"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user