Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Adds a better layout for the API spec

Copple3f338c3e674e
diff --git a/apps/reference/_api/intro.md b/apps/reference/_api/intro.md
index 8f8abc600ab..e4b62599597 100644
--- a/apps/reference/_api/intro.md
+++ b/apps/reference/_api/intro.md
@@ -33,4 +33,5 @@ All resources created via the API are subject to the pricing detailed on our [Pr
## Additional links
- [OpenAPI Docs](https://api.supabase.com/api/v1)
+- [OpenAPI Spec](https://api.supabase.com/api/v1-json)
- Reporting bugs and issues: [github.com/supabase/supabase](https://github.com/supabase/supabase)
\ No newline at end of file
diff --git a/apps/reference/_api/usage.mdx b/apps/reference/_api/usage.mdx
index eb8f3e58b09..237786c6214 100644
--- a/apps/reference/_api/usage.mdx
+++ b/apps/reference/_api/usage.mdx
@@ -13,19 +13,23 @@ import TabItem from '@theme/TabItem';
-
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+## organizations {#organizations}
+
+Organization endpoints
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## List all projects {#list-all-projects}
+### List all organizations {#list-all-organizations}
```
-GET https://api.supabase.com/v1/projects
+GET https://api.supabase.com/v1/organizations
```
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -38,7 +42,7 @@ GET https://api.supabase.com/v1/projects
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
@@ -59,25 +63,13 @@ GET https://api.supabase.com/v1/projects
"id": {
"type": "string"
},
- "organization_id": {
- "type": "string"
- },
"name": {
"type": "string"
- },
- "region": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
}
},
"required": [
"id",
- "organization_id",
- "name",
- "region",
- "created_at"
+ "name"
]
}
}
@@ -85,6 +77,18 @@ GET https://api.supabase.com/v1/projects
```
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+</TabItem>
+
+<TabItem value="500">
+
+Unexpected error listing organizations
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -96,10 +100,10 @@ GET https://api.supabase.com/v1/projects
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## Create a project {#create-a-project}
+### Create an organization {#create-an-organization}
```
-POST https://api.supabase.com/v1/projects
+POST https://api.supabase.com/v1/organizations
```
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -109,53 +113,19 @@ POST https://api.supabase.com/v1/projects
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Body
+#### Body
```json
{
"schema": {
"type": "object",
"properties": {
- "db_pass": {
- "type": "string"
- },
"name": {
"type": "string"
- },
- "organization_id": {
- "type": "string"
- },
- "plan": {
- "type": "string",
- "enum": [
- "free",
- "pro"
- ]
- },
- "region": {
- "type": "string",
- "enum": [
- "us-east-1",
- "us-west-1",
- "ap-southeast-1",
- "ap-northeast-1",
- "ap-northeast-2",
- "ap-southeast-2",
- "eu-west-1",
- "eu-west-2",
- "eu-central-1",
- "ca-central-1",
- "ap-south-1",
- "sa-east-1"
- ]
}
},
"required": [
- "db_pass",
- "name",
- "organization_id",
- "plan",
- "region"
+ "name"
]
}
}
@@ -164,7 +134,7 @@ POST https://api.supabase.com/v1/projects
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
@@ -183,31 +153,31 @@ POST https://api.supabase.com/v1/projects
"id": {
"type": "string"
},
- "organization_id": {
- "type": "string"
- },
"name": {
"type": "string"
- },
- "region": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
}
},
"required": [
"id",
- "organization_id",
- "name",
- "region",
- "created_at"
+ "name"
]
}
}
```
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+</TabItem>
+
+<TabItem value="500">
+
+Unexpected error creating an organization
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -218,13 +188,18 @@ POST https://api.supabase.com/v1/projects
+## projects {#projects}
+
+Project endpoints
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## List all organizations {#list-all-organizations}
+### List all projects {#list-all-projects}
```
-GET https://api.supabase.com/v1/organizations
+GET https://api.supabase.com/v1/projects
```
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -237,7 +212,7 @@ GET https://api.supabase.com/v1/organizations
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
@@ -258,13 +233,25 @@ GET https://api.supabase.com/v1/organizations
"id": {
"type": "string"
},
+ "organization_id": {
+ "type": "string"
+ },
"name": {
"type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
}
},
"required": [
"id",
- "name"
+ "organization_id",
+ "name",
+ "region",
+ "created_at"
]
}
}
@@ -272,18 +259,6 @@ GET https://api.supabase.com/v1/organizations
```
-<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-
-</TabItem>
-
-<TabItem value="500">
-
-Unexpected error listing organizations
-
-<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-
-
-
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -295,10 +270,10 @@ Unexpected error listing organizations
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## Create an organization {#create-an-organization}
+### Create a project {#create-a-project}
```
-POST https://api.supabase.com/v1/organizations
+POST https://api.supabase.com/v1/projects
```
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -308,19 +283,53 @@ POST https://api.supabase.com/v1/organizations
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Body
+#### Body
```json
{
"schema": {
"type": "object",
"properties": {
+ "db_pass": {
+ "type": "string"
+ },
"name": {
"type": "string"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "plan": {
+ "type": "string",
+ "enum": [
+ "free",
+ "pro"
+ ]
+ },
+ "region": {
+ "type": "string",
+ "enum": [
+ "us-east-1",
+ "us-west-1",
+ "ap-southeast-1",
+ "ap-northeast-1",
+ "ap-northeast-2",
+ "ap-southeast-2",
+ "eu-west-1",
+ "eu-west-2",
+ "eu-central-1",
+ "ca-central-1",
+ "ap-south-1",
+ "sa-east-1"
+ ]
}
},
"required": [
- "name"
+ "db_pass",
+ "name",
+ "organization_id",
+ "plan",
+ "region"
]
}
}
@@ -329,7 +338,7 @@ POST https://api.supabase.com/v1/organizations
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
@@ -348,31 +357,31 @@ POST https://api.supabase.com/v1/organizations
"id": {
"type": "string"
},
+ "organization_id": {
+ "type": "string"
+ },
"name": {
"type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
}
},
"required": [
"id",
- "name"
+ "organization_id",
+ "name",
+ "region",
+ "created_at"
]
}
}
```
-<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-
-</TabItem>
-
-<TabItem value="500">
-
-Unexpected error creating an organization
-
-<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-
-
-
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -382,11 +391,9 @@ Unexpected error creating an organization
<br />
-
-
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## List all functions {#list-all-functions}
+### List all functions {#list-all-functions}
```
GET https://api.supabase.com/v1/projects/{ref}/functions
@@ -395,7 +402,7 @@ GET https://api.supabase.com/v1/projects/{ref}/functions
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Parameters
+#### Parameters
<ul className="method-list-group">
@@ -425,7 +432,7 @@ GET https://api.supabase.com/v1/projects/{ref}/functions
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
@@ -511,7 +518,7 @@ Failed to retrieve project's functions
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## Create a function {#create-a-function}
+### Create a function {#create-a-function}
```
POST https://api.supabase.com/v1/projects/{ref}/functions
@@ -520,7 +527,7 @@ POST https://api.supabase.com/v1/projects/{ref}/functions
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Parameters
+#### Parameters
<ul className="method-list-group">
@@ -547,7 +554,7 @@ POST https://api.supabase.com/v1/projects/{ref}/functions
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Body
+#### Body
```json
{
@@ -580,7 +587,7 @@ POST https://api.supabase.com/v1/projects/{ref}/functions
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
@@ -661,11 +668,9 @@ Failed to create project's function
<br />
-
-
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## Retrieve a function {#retrieve-a-function}
+### Retrieve a function {#retrieve-a-function}
```
GET https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
@@ -674,7 +679,7 @@ GET https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Parameters
+#### Parameters
<ul className="method-list-group">
@@ -738,7 +743,7 @@ GET https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
@@ -824,7 +829,7 @@ Failed to retrieve function with given slug
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## Update a function {#update-a-function}
+### Update a function {#update-a-function}
```
PATCH https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
@@ -833,7 +838,7 @@ PATCH https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Parameters
+#### Parameters
<ul className="method-list-group">
@@ -877,7 +882,7 @@ PATCH https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Body
+#### Body
```json
{
@@ -901,7 +906,7 @@ PATCH https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
@@ -984,7 +989,7 @@ Failed to update function with given slug
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## Delete a function {#delete-a-function}
+### Delete a function {#delete-a-function}
```
DELETE https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
@@ -993,7 +998,7 @@ DELETE https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Parameters
+#### Parameters
<ul className="method-list-group">
@@ -1040,7 +1045,7 @@ DELETE https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
@@ -1073,11 +1078,9 @@ Failed to delete function with given slug
<br />
-
-
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## List all secrets {#list-all-secrets}
+### List all secrets {#list-all-secrets}
```
GET https://api.supabase.com/v1/projects/{ref}/secrets
@@ -1086,7 +1089,7 @@ GET https://api.supabase.com/v1/projects/{ref}/secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Parameters
+#### Parameters
<ul className="method-list-group">
@@ -1116,7 +1119,7 @@ GET https://api.supabase.com/v1/projects/{ref}/secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
@@ -1174,7 +1177,7 @@ Failed to retrieve project's secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## Bulk create secrets {#bulk-create-secrets}
+### Bulk create secrets {#bulk-create-secrets}
```
POST https://api.supabase.com/v1/projects/{ref}/secrets
@@ -1183,7 +1186,7 @@ POST https://api.supabase.com/v1/projects/{ref}/secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Parameters
+#### Parameters
<ul className="method-list-group">
@@ -1210,7 +1213,7 @@ POST https://api.supabase.com/v1/projects/{ref}/secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Body
+#### Body
```json
{
@@ -1239,7 +1242,7 @@ POST https://api.supabase.com/v1/projects/{ref}/secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
@@ -1274,7 +1277,7 @@ Failed to create project's secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## Bulk delete secrets {#bulk-delete-secrets}
+### Bulk delete secrets {#bulk-delete-secrets}
```
DELETE https://api.supabase.com/v1/projects/{ref}/secrets
@@ -1283,7 +1286,7 @@ DELETE https://api.supabase.com/v1/projects/{ref}/secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Parameters
+#### Parameters
<ul className="method-list-group">
@@ -1310,7 +1313,7 @@ DELETE https://api.supabase.com/v1/projects/{ref}/secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Body
+#### Body
```json
{
@@ -1326,7 +1329,7 @@ DELETE https://api.supabase.com/v1/projects/{ref}/secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
diff --git a/packages/spec/src/docs/api.ts b/packages/spec/src/docs/api.ts
index d30d62dbba7..7efdc6350f8 100644
--- a/packages/spec/src/docs/api.ts
+++ b/packages/spec/src/docs/api.ts
@@ -38,32 +38,49 @@ export default async function gen(
type v3OperationWithPath = OpenAPIV3.OperationObject & {
path: string
}
+type enrichedOperation = OpenAPIV3.OperationObject & {
+ path: string
+ fullPath: string
+ operationId: string
+}
async function gen_v3(
spec: OpenAPIV3.Document,
dest: string,
{ apiUrl }: { apiUrl: string }
) {
- const paths = Object.entries(spec.paths).map(([key, path], i) => {
+ const specLayout = spec.tags || []
+ const operations: enrichedOperation[] = []
+ Object.entries(spec.paths).forEach(([key, val]) => {
const fullPath = `${apiUrl}${key}`
- return {
- path: key,
- fullPath,
- operationList: toArrayWithKey(path!, 'operation').map((o) => {
- const operation = o as v3OperationWithPath
- return {
- ...operation,
- operationId: slugify(operation.summary!),
- responseList:
- toArrayWithKey(operation.responses!, 'responseCode') || [],
- }
- }),
+ toArrayWithKey(val!, 'operation').forEach((o) => {
+ const operation = o as v3OperationWithPath
+ const enriched = {
+ ...operation,
+ path: key,
+ fullPath,
+ operationId: slugify(operation.summary!),
+
+ responseList:
+ toArrayWithKey(operation.responses!, 'responseCode') || [],
+ }
+ operations.push(enriched)
+ })
+ })
+
+ const sections = specLayout.map((section) => {
+ return {
+ ...section,
+ operations: operations.filter((operation) =>
+ operation.tags?.includes(section.name)
+ ),
}
})
const content = ejs.render(template, {
info: spec.info,
- paths,
+ sections,
+ operations,
})
// console.log(content)
// Write to disk
diff --git a/packages/spec/src/docs/templates/ApiTemplate.ts b/packages/spec/src/docs/templates/ApiTemplate.ts
index 76b9116bc2c..c75add543c0 100644
--- a/packages/spec/src/docs/templates/ApiTemplate.ts
+++ b/packages/spec/src/docs/templates/ApiTemplate.ts
@@ -14,25 +14,29 @@ import TabItem from '@theme/TabItem';
<%- info.description %>
-
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-<% paths.forEach(function(path){ %>
-<% path.operationList.forEach(function(operation){ %>
+<% sections.forEach(function(section){ %>
+
+## <%- section.name %> {#<%= section.name %>}
+
+<%- section.description %>
+
+<% section.operations.forEach(function(operation){ %>
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## <%- operation.summary %> {#<%- operation.operationId %>}
+### <%- operation.summary %> {#<%- operation.operationId %>}
\`\`\`
-<%- operation.operation.toUpperCase() %> <%- path.fullPath %>
+<%- operation.operation.toUpperCase() %> <%- operation.fullPath %>
\`\`\`
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
<% if(operation.parameters && operation.parameters.length){ %>
-### Parameters
+#### Parameters
<ul className="method-list-group">
<% operation.parameters.forEach(function(parameter){ %>
@@ -59,7 +63,7 @@ import TabItem from '@theme/TabItem';
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
<% if(operation.requestBody?.content && operation.requestBody?.content['application/json']){ %>
-### Body
+#### Body
\`\`\`json
<%- JSON.stringify(operation.requestBody?.content['application/json'], null, 2) %>
@@ -68,7 +72,7 @@ import TabItem from '@theme/TabItem';
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-### Responses
+#### Responses
<Tabs>
<% operation.responseList.forEach(function(response){ %>
diff --git a/spec/api_v0_openapi.json b/spec/api_v0_openapi.json
index 62d7518cfb5..6180bba0f14 100644
--- a/spec/api_v0_openapi.json
+++ b/spec/api_v0_openapi.json
@@ -20,6 +20,7 @@
}
}
},
+ "tags": ["projects"],
"security": [{ "bearer": [] }]
},
"post": {
@@ -40,6 +41,7 @@
}
}
},
+ "tags": ["projects"],
"security": [{ "bearer": [] }]
}
},
@@ -63,6 +65,7 @@
},
"500": { "description": "Unexpected error listing organizations" }
},
+ "tags": ["organizations"],
"security": [{ "bearer": [] }]
},
"post": {
@@ -88,6 +91,7 @@
},
"500": { "description": "Unexpected error creating an organization" }
},
+ "tags": ["organizations"],
"security": [{ "bearer": [] }]
}
},
@@ -119,6 +123,7 @@
},
"500": { "description": "Failed to retrieve project's functions" }
},
+ "tags": ["projects"],
"security": [{ "bearer": [] }]
},
"post": {
@@ -149,6 +154,7 @@
},
"500": { "description": "Failed to create project's function" }
},
+ "tags": ["projects"],
"security": [{ "bearer": [] }]
}
},
@@ -190,6 +196,7 @@
},
"500": { "description": "Failed to retrieve function with given slug" }
},
+ "tags": ["projects"],
"security": [{ "bearer": [] }]
},
"patch": {
@@ -227,6 +234,7 @@
},
"500": { "description": "Failed to update function with given slug" }
},
+ "tags": ["projects"],
"security": [{ "bearer": [] }]
},
"delete": {
@@ -253,6 +261,7 @@
"200": { "description": "" },
"500": { "description": "Failed to delete function with given slug" }
},
+ "tags": ["projects"],
"security": [{ "bearer": [] }]
}
},
@@ -284,6 +293,7 @@
},
"500": { "description": "Failed to retrieve project's secrets" }
},
+ "tags": ["projects"],
"security": [{ "bearer": [] }]
},
"post": {
@@ -314,6 +324,7 @@
"201": { "description": "" },
"500": { "description": "Failed to create project's secrets" }
},
+ "tags": ["projects"],
"security": [{ "bearer": [] }]
},
"delete": {
@@ -342,12 +353,16 @@
},
"500": { "description": "Failed to delete secrets with given names" }
},
+ "tags": ["projects"],
"security": [{ "bearer": [] }]
}
}
},
"info": { "title": "Supabase API (v1)", "description": "", "version": "1.0.0", "contact": {} },
- "tags": [],
+ "tags": [
+ { "name": "organizations", "description": "Organization endpoints" },
+ { "name": "projects", "description": "Project endpoints" }
+ ],
"servers": [],
"components": {
"securitySchemes": { "bearer": { "scheme": "bearer", "bearerFormat": "JWT", "type": "http" } },
diff --git a/spec/api_v0_openapi/deparsed.json b/spec/api_v0_openapi/deparsed.json
index fc710024891..0f50500c5c6 100644
--- a/spec/api_v0_openapi/deparsed.json
+++ b/spec/api_v0_openapi/deparsed.json
@@ -46,6 +46,9 @@
}
}
},
+ "tags": [
+ "projects"
+ ],
"security": [
{
"bearer": []
@@ -144,6 +147,9 @@
}
}
},
+ "tags": [
+ "projects"
+ ],
"security": [
{
"bearer": []
@@ -187,6 +193,9 @@
"description": "Unexpected error listing organizations"
}
},
+ "tags": [
+ "organizations"
+ ],
"security": [
{
"bearer": []
@@ -242,6 +251,9 @@
"description": "Unexpected error creating an organization"
}
},
+ "tags": [
+ "organizations"
+ ],
"security": [
{
"bearer": []
@@ -325,6 +337,9 @@
"description": "Failed to retrieve project's functions"
}
},
+ "tags": [
+ "projects"
+ ],
"security": [
{
"bearer": []
@@ -433,6 +448,9 @@
"description": "Failed to create project's function"
}
},
+ "tags": [
+ "projects"
+ ],
"security": [
{
"bearer": []
@@ -534,6 +552,9 @@
"description": "Failed to retrieve function with given slug"
}
},
+ "tags": [
+ "projects"
+ ],
"security": [
{
"bearer": []
@@ -643,6 +664,9 @@
"description": "Failed to update function with given slug"
}
},
+ "tags": [
+ "projects"
+ ],
"security": [
{
"bearer": []
@@ -684,6 +708,9 @@
"description": "Failed to delete function with given slug"
}
},
+ "tags": [
+ "projects"
+ ],
"security": [
{
"bearer": []
@@ -739,6 +766,9 @@
"description": "Failed to retrieve project's secrets"
}
},
+ "tags": [
+ "projects"
+ ],
"security": [
{
"bearer": []
@@ -796,6 +826,9 @@
"description": "Failed to create project's secrets"
}
},
+ "tags": [
+ "projects"
+ ],
"security": [
{
"bearer": []
@@ -847,6 +880,9 @@
"description": "Failed to delete secrets with given names"
}
},
+ "tags": [
+ "projects"
+ ],
"security": [
{
"bearer": []
@@ -861,7 +897,16 @@
"version": "1.0.0",
"contact": {}
},
- "tags": [],
+ "tags": [
+ {
+ "name": "organizations",
+ "description": "Organization endpoints"
+ },
+ {
+ "name": "projects",
+ "description": "Project endpoints"
+ }
+ ],
"servers": [],
"components": {
"securitySchemes": {