-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhandwritten-openapi.yaml
185 lines (173 loc) · 4.55 KB
/
handwritten-openapi.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
openapi: 3.0.1
info:
title: AWS SDK for Natural Language
description: Use AWS with natural language
version: 'v1'
servers:
- url: https://gpt4-plugin-test-mataslauzadis.vercel.app/
paths:
/aws/authenticate:
post:
operationId: authenticate
summary: Authenticate with AWS using the given credentials
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AuthenticateRequest'
responses:
"200":
description: "OK"
content:
text:
"OK"
/aws/s3/list_objects/{bucket_name}:
get:
operationId: listObjects
summary: Get the list of objects
parameters:
- in: path
name: bucket_name
required: true
schema:
type: string
description: The name of the bucket to list objects in.
responses:
"200":
description: "OK"
content:
application/json:
schema:
$ref: '#/components/schemas/list_objects_response'
/aws/s3/create_bucket:
post:
operationId: createBucket
summary: Create an S3 bucket
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateBucketRequest'
responses:
"200":
description: "OK"
content:
application/json:
schema:
$ref: '#/components/schemas/create_bucket_response'
/aws/s3/get_object/{bucket}&{key}:
get:
operationId: getObject
summary: Get an object with the given key from the given S3 bucket
parameters:
- in: path
name: bucket
required: true
schema:
type: string
description: The name of the bucket to retrieve the object from
- in: path
name: key
required: true
schema:
type: string
description: The key of the object to retrieve
responses:
"200":
description: "OK"
content:
application/json:
schema:
$ref: '#/components/schemas/get_object_response'
/aws/s3/put_object:
post:
operationId: putObject
summary: Put an object to an S3 bucket
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PutObjectRequest'
responses:
"200":
description: "OK"
content:
text:
"OK"
/aws/s3/delete_object:
post:
operationId: deleteObject
summary: Delete an S3 object
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteObjectRequest'
responses:
"200":
description: "OK"
content:
text:
"OK"
components:
schemas:
AuthenticateRequest:
type: object
properties:
access_key_id:
type: string
description: The access key ID
secret_access_key:
type: string
description: The secret access key
list_objects_response:
type: object
properties:
todos:
type: array
items:
type: string
description: The list of objects.
CreateBucketRequest:
type: object
properties:
bucketName:
type: string
description: The name of the bucket to create
create_bucket_response:
type: object
properties:
bucketName:
type: string
description: The name of the bucket which was created.
get_object_response:
type: object
properties:
data:
type: string
description: The Base64 encoding of the object.
PutObjectRequest:
type: object
properties:
bucket:
type: string
description: The name of the bucket to put the object in
key:
type: string
description: The key of the object being put
data:
type: string
description: The data representing the object being put
DeleteObjectRequest:
type: object
properties:
bucket:
type: string
description: The name of the bucket to delete the object from
key:
type: string
description: The key of the object being deleted