Skip to content

Commit 7da4341

Browse files
committed
chore(typespec): switch OpenAPI output from YAML to JSON
1 parent cdf66ff commit 7da4341

7 files changed

Lines changed: 2397 additions & 1528 deletions
Lines changed: 299 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,299 @@
1+
{
2+
"openapi": "3.0.0",
3+
"info": {
4+
"title": "Supabase Edge Functions API",
5+
"version": "1.0"
6+
},
7+
"tags": [],
8+
"paths": {
9+
"/functions/v1/{functionName}": {
10+
"get": {
11+
"operationId": "FunctionInvocations_invokeGet",
12+
"parameters": [
13+
{
14+
"name": "functionName",
15+
"in": "path",
16+
"required": true,
17+
"schema": {
18+
"type": "string"
19+
}
20+
},
21+
{
22+
"name": "x-region",
23+
"in": "header",
24+
"required": false,
25+
"schema": {
26+
"type": "string"
27+
}
28+
}
29+
],
30+
"responses": {
31+
"200": {
32+
"description": "The request has succeeded.",
33+
"content": {
34+
"*/*": {
35+
"schema": {
36+
"type": "string",
37+
"format": "binary"
38+
}
39+
}
40+
}
41+
},
42+
"default": {
43+
"description": "An unexpected error response.",
44+
"content": {
45+
"application/json": {
46+
"schema": {
47+
"$ref": "#/components/schemas/FunctionsError"
48+
}
49+
}
50+
}
51+
}
52+
}
53+
},
54+
"post": {
55+
"operationId": "FunctionInvocations_invokePost",
56+
"parameters": [
57+
{
58+
"name": "functionName",
59+
"in": "path",
60+
"required": true,
61+
"schema": {
62+
"type": "string"
63+
}
64+
},
65+
{
66+
"name": "x-region",
67+
"in": "header",
68+
"required": false,
69+
"schema": {
70+
"type": "string"
71+
}
72+
}
73+
],
74+
"responses": {
75+
"200": {
76+
"description": "The request has succeeded.",
77+
"content": {
78+
"*/*": {
79+
"schema": {
80+
"type": "string",
81+
"format": "binary"
82+
}
83+
}
84+
}
85+
},
86+
"default": {
87+
"description": "An unexpected error response.",
88+
"content": {
89+
"application/json": {
90+
"schema": {
91+
"$ref": "#/components/schemas/FunctionsError"
92+
}
93+
}
94+
}
95+
}
96+
},
97+
"requestBody": {
98+
"required": false,
99+
"content": {
100+
"*/*": {
101+
"schema": {
102+
"type": "string",
103+
"format": "binary"
104+
}
105+
}
106+
}
107+
}
108+
},
109+
"put": {
110+
"operationId": "FunctionInvocations_invokePut",
111+
"parameters": [
112+
{
113+
"name": "functionName",
114+
"in": "path",
115+
"required": true,
116+
"schema": {
117+
"type": "string"
118+
}
119+
},
120+
{
121+
"name": "x-region",
122+
"in": "header",
123+
"required": false,
124+
"schema": {
125+
"type": "string"
126+
}
127+
}
128+
],
129+
"responses": {
130+
"200": {
131+
"description": "The request has succeeded.",
132+
"content": {
133+
"*/*": {
134+
"schema": {
135+
"type": "string",
136+
"format": "binary"
137+
}
138+
}
139+
}
140+
},
141+
"default": {
142+
"description": "An unexpected error response.",
143+
"content": {
144+
"application/json": {
145+
"schema": {
146+
"$ref": "#/components/schemas/FunctionsError"
147+
}
148+
}
149+
}
150+
}
151+
},
152+
"requestBody": {
153+
"required": false,
154+
"content": {
155+
"*/*": {
156+
"schema": {
157+
"type": "string",
158+
"format": "binary"
159+
}
160+
}
161+
}
162+
}
163+
},
164+
"patch": {
165+
"operationId": "FunctionInvocations_invokePatch",
166+
"parameters": [
167+
{
168+
"name": "functionName",
169+
"in": "path",
170+
"required": true,
171+
"schema": {
172+
"type": "string"
173+
}
174+
},
175+
{
176+
"name": "x-region",
177+
"in": "header",
178+
"required": false,
179+
"schema": {
180+
"type": "string"
181+
}
182+
}
183+
],
184+
"responses": {
185+
"200": {
186+
"description": "The request has succeeded.",
187+
"content": {
188+
"*/*": {
189+
"schema": {
190+
"type": "string",
191+
"format": "binary"
192+
}
193+
}
194+
}
195+
},
196+
"default": {
197+
"description": "An unexpected error response.",
198+
"content": {
199+
"application/json": {
200+
"schema": {
201+
"$ref": "#/components/schemas/FunctionsError"
202+
}
203+
}
204+
}
205+
}
206+
},
207+
"requestBody": {
208+
"required": false,
209+
"content": {
210+
"*/*": {
211+
"schema": {
212+
"type": "string",
213+
"format": "binary"
214+
}
215+
}
216+
}
217+
}
218+
},
219+
"delete": {
220+
"operationId": "FunctionInvocations_invokeDelete",
221+
"parameters": [
222+
{
223+
"name": "functionName",
224+
"in": "path",
225+
"required": true,
226+
"schema": {
227+
"type": "string"
228+
}
229+
},
230+
{
231+
"name": "x-region",
232+
"in": "header",
233+
"required": false,
234+
"schema": {
235+
"type": "string"
236+
}
237+
}
238+
],
239+
"responses": {
240+
"200": {
241+
"description": "The request has succeeded.",
242+
"content": {
243+
"*/*": {
244+
"schema": {
245+
"type": "string",
246+
"format": "binary"
247+
}
248+
}
249+
}
250+
},
251+
"default": {
252+
"description": "An unexpected error response.",
253+
"content": {
254+
"application/json": {
255+
"schema": {
256+
"$ref": "#/components/schemas/FunctionsError"
257+
}
258+
}
259+
}
260+
}
261+
},
262+
"requestBody": {
263+
"required": false,
264+
"content": {
265+
"*/*": {
266+
"schema": {
267+
"type": "string",
268+
"format": "binary"
269+
}
270+
}
271+
}
272+
}
273+
}
274+
}
275+
},
276+
"components": {
277+
"schemas": {
278+
"FunctionsError": {
279+
"type": "object",
280+
"properties": {
281+
"message": {
282+
"type": "string"
283+
}
284+
}
285+
}
286+
}
287+
},
288+
"servers": [
289+
{
290+
"url": "{baseUrl}",
291+
"description": "Supabase Edge Functions endpoint",
292+
"variables": {
293+
"baseUrl": {
294+
"default": ""
295+
}
296+
}
297+
}
298+
]
299+
}

0 commit comments

Comments
 (0)