The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: update mgmt api docs (#32918)
github-actions[bot]347dbcc87545
diff --git a/apps/docs/spec/api_v1_openapi.json b/apps/docs/spec/api_v1_openapi.jsonindex 808f2c415a9..f6373ea7e1d 100644--- a/apps/docs/spec/api_v1_openapi.json+++ b/apps/docs/spec/api_v1_openapi.json@@ -2204,6 +2204,37 @@}},"/v1/projects/{ref}/functions": {+ "get": {+ "operationId": "v1-list-all-functions",+ "summary": "List all functions",+ "description": "Returns all functions you've previously added to the specified project.",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "description": "Project ref",+ "schema": { "minLength": 20, "maxLength": 20, "type": "string" }+ }+ ],+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "type": "array",+ "items": { "$ref": "#/components/schemas/FunctionResponse" }+ }+ }+ }+ },+ "403": { "description": "" },+ "500": { "description": "Failed to retrieve project's functions" }+ },+ "tags": ["Edge Functions"],+ "security": [{ "bearer": [] }]+ },"post": {"operationId": "v1-create-a-function","summary": "Create a function",@@ -2277,37 +2308,6 @@},"tags": ["Edge Functions"],"security": [{ "bearer": [] }]- },- "get": {- "operationId": "v1-list-all-functions",- "summary": "List all functions",- "description": "Returns all functions you've previously added to the specified project.",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": { "$ref": "#/components/schemas/FunctionResponse" }- }- }- }- },- "403": { "description": "" },- "500": { "description": "Failed to retrieve project's functions" }- },- "tags": ["Edge Functions"],- "security": [{ "bearer": [] }]}},"/v1/projects/{ref}/functions/{function_slug}": {@@ -4506,17 +4506,6 @@"properties": { "query": { "type": "string" } },"required": ["query"]},- "V1CreateFunctionBody": {- "type": "object",- "properties": {- "slug": { "type": "string", "pattern": "/^[A-Za-z0-9_-]+$/" },- "name": { "type": "string" },- "body": { "type": "string" },- "verify_jwt": { "type": "boolean" },- "compute_multiplier": { "type": "number", "minimum": 1, "maximum": 4 }- },- "required": ["slug", "name", "body"]- },"FunctionResponse": {"type": "object","properties": {@@ -4535,6 +4524,17 @@},"required": ["version", "created_at", "updated_at", "id", "slug", "name", "status"]},+ "V1CreateFunctionBody": {+ "type": "object",+ "properties": {+ "slug": { "type": "string", "pattern": "/^[A-Za-z0-9_-]+$/" },+ "name": { "type": "string" },+ "body": { "type": "string" },+ "verify_jwt": { "type": "boolean" },+ "compute_multiplier": { "type": "number", "minimum": 1, "maximum": 4 }+ },+ "required": ["slug", "name", "body"]+ },"FunctionSlugResponse": {"type": "object","properties": {diff --git a/apps/docs/spec/transforms/api_v1_openapi_deparsed.json b/apps/docs/spec/transforms/api_v1_openapi_deparsed.jsonindex 45725e0d4dd..4c400afce40 100644--- a/apps/docs/spec/transforms/api_v1_openapi_deparsed.json+++ b/apps/docs/spec/transforms/api_v1_openapi_deparsed.json@@ -8545,6 +8545,101 @@}},"/v1/projects/{ref}/functions": {+ "get": {+ "operationId": "v1-list-all-functions",+ "summary": "List all functions",+ "description": "Returns all functions you've previously added to the specified project.",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "description": "Project ref",+ "schema": {+ "minLength": 20,+ "maxLength": 20,+ "type": "string"+ }+ }+ ],+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "version": {+ "type": "integer"+ },+ "created_at": {+ "type": "integer",+ "format": "int64"+ },+ "updated_at": {+ "type": "integer",+ "format": "int64"+ },+ "id": {+ "type": "string"+ },+ "slug": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "status": {+ "enum": ["ACTIVE", "REMOVED", "THROTTLED"],+ "type": "string"+ },+ "verify_jwt": {+ "type": "boolean"+ },+ "import_map": {+ "type": "boolean"+ },+ "entrypoint_path": {+ "type": "string"+ },+ "import_map_path": {+ "type": "string"+ },+ "compute_multiplier": {+ "type": "number"+ }+ },+ "required": [+ "version",+ "created_at",+ "updated_at",+ "id",+ "slug",+ "name",+ "status"+ ]+ }+ }+ }+ }+ },+ "403": {+ "description": ""+ },+ "500": {+ "description": "Failed to retrieve project's functions"+ }+ },+ "tags": ["Edge Functions"],+ "security": [+ {+ "bearer": []+ }+ ]+ },"post": {"operationId": "v1-create-a-function","summary": "Create a function",@@ -8752,101 +8847,6 @@"bearer": []}]- },- "get": {- "operationId": "v1-list-all-functions",- "summary": "List all functions",- "description": "Returns all functions you've previously added to the specified project.",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": {- "minLength": 20,- "maxLength": 20,- "type": "string"- }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": {- "type": "object",- "properties": {- "version": {- "type": "integer"- },- "created_at": {- "type": "integer",- "format": "int64"- },- "updated_at": {- "type": "integer",- "format": "int64"- },- "id": {- "type": "string"- },- "slug": {- "type": "string"- },- "name": {- "type": "string"- },- "status": {- "enum": ["ACTIVE", "REMOVED", "THROTTLED"],- "type": "string"- },- "verify_jwt": {- "type": "boolean"- },- "import_map": {- "type": "boolean"- },- "entrypoint_path": {- "type": "string"- },- "import_map_path": {- "type": "string"- },- "compute_multiplier": {- "type": "number"- }- },- "required": [- "version",- "created_at",- "updated_at",- "id",- "slug",- "name",- "status"- ]- }- }- }- }- },- "403": {- "description": ""- },- "500": {- "description": "Failed to retrieve project's functions"- }- },- "tags": ["Edge Functions"],- "security": [- {- "bearer": []- }- ]}},"/v1/projects/{ref}/functions/{function_slug}": {@@ -14420,30 +14420,6 @@},"required": ["query"]},- "V1CreateFunctionBody": {- "type": "object",- "properties": {- "slug": {- "type": "string",- "pattern": "/^[A-Za-z0-9_-]+$/"- },- "name": {- "type": "string"- },- "body": {- "type": "string"- },- "verify_jwt": {- "type": "boolean"- },- "compute_multiplier": {- "type": "number",- "minimum": 1,- "maximum": 4- }- },- "required": ["slug", "name", "body"]- },"FunctionResponse": {"type": "object","properties": {@@ -14489,6 +14465,30 @@},"required": ["version", "created_at", "updated_at", "id", "slug", "name", "status"]},+ "V1CreateFunctionBody": {+ "type": "object",+ "properties": {+ "slug": {+ "type": "string",+ "pattern": "/^[A-Za-z0-9_-]+$/"+ },+ "name": {+ "type": "string"+ },+ "body": {+ "type": "string"+ },+ "verify_jwt": {+ "type": "boolean"+ },+ "compute_multiplier": {+ "type": "number",+ "minimum": 1,+ "maximum": 4+ }+ },+ "required": ["slug", "name", "body"]+ },"FunctionSlugResponse": {"type": "object","properties": {