-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocs.yml
60 lines (60 loc) · 1.66 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
openapi: 3.0.0
info:
title: Object Storage Service API
version: 1.0.0
description: RESTful API for storing and retrieving objects in a directory-based object storage service
servers:
- url: http://localhost:3000
paths:
/objects/{bucketName}/{key}:
get:
summary: Retrieve an object from a bucket by key
parameters:
- name: bucketName
in: path
description: The name of the bucket to retrieve the object from
required: true
schema:
type: string
- name: key
in: path
description: The key of the object to retrieve
required: true
schema:
type: string
responses:
'200':
description: Object retrieved successfully
content:
application/octet-stream:
schema:
type: string
'500':
description: Internal server error
put:
summary: Store/Edit an object in a bucket with a key
parameters:
- name: bucketName
in: path
description: The name of the bucket to store the object in
required: true
schema:
type: string
- name: key
in: path
description: The key to use for the object
required: true
schema:
type: string
requestBody:
description: The object to store
required: true
content:
application/octet-stream:
schema:
type: string
responses:
'200':
description: Object stored successfully
'500':
description: Internal server error