Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 135 additions & 39 deletions api/beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2220,6 +2220,34 @@ paths:
- Database
security:
- bearer: []
/v1/projects/{ref}/database/context:
get:
operationId: getDatabaseMetadata
summary: Gets database metadata for the given project.
description: >-
This is an **experimental** endpoint. It is subject to change or removal
in future versions. Use it with caution, as it may not remain supported
or stable.
deprecated: true
parameters:
- name: ref
required: true
in: path
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/GetProjectDbMetadataResponseDto'
'403':
description: ''
tags:
- Database
security:
- bearer: []
/v1/projects/{ref}/functions:
get:
operationId: v1-list-all-functions
Expand Down Expand Up @@ -2326,6 +2354,49 @@ paths:
- Edge Functions
security:
- bearer: []
/v1/projects/{ref}/functions/deploy:
post:
operationId: v1-deploy-a-function
summary: Deploy a function
description: >-
A new endpoint to deploy functions. It will create if function does not
exist.
parameters:
- name: ref
required: true
in: path
description: Project ref
schema:
minLength: 20
maxLength: 20
type: string
- name: slug
required: false
in: query
schema:
pattern: /^[A-Za-z0-9_-]+$/
type: string
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/FunctionDeployBody'
responses:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/FunctionResponse'
'403':
description: ''
'500':
description: Failed to deploy function
tags:
- Edge Functions
security:
- bearer: []
/v1/projects/{ref}/functions/{function_slug}:
get:
operationId: v1-get-a-function
Expand Down Expand Up @@ -3111,30 +3182,15 @@ components:
description: Template URL used to create the project from the CLI.
example: >-
https://github.com/supabase/supabase/tree/master/examples/slack-clone/nextjs-slack-clone
release_channel:
type: string
enum:
- internal
- alpha
- beta
- ga
- withdrawn
- preview
description: Release channel. If not provided, GA will be used.
postgres_engine:
type: string
enum:
- '15'
- 17-oriole
description: >-
Postgres engine version. If not provided, the latest version will be
used.
required:
- db_pass
- name
- organization_id
- region
additionalProperties: false
hideDefinitions:
- release_channel
- postgres_engine
V1ProjectResponse:
type: object
properties:
Expand Down Expand Up @@ -5469,6 +5525,7 @@ components:
- '13'
- '14'
- '15'
- '17'
- 17-oriole
required:
- version
Expand All @@ -5485,27 +5542,10 @@ components:
- available_versions
RestoreProjectBodyDto:
type: object
properties:
release_channel:
type: string
enum:
- internal
- alpha
- beta
- ga
- withdrawn
- preview
description: >-
Release channel version. If not provided, GeneralAvailability will
be used.
postgres_engine:
type: string
enum:
- '15'
- 17-oriole
description: >-
Postgres engine version. If not provided, the latest version from
the given release channel will be used.
properties: {}
hideDefinitions:
- release_channel
- postgres_engine
V1AnalyticsResponse:
type: object
properties:
Expand Down Expand Up @@ -5544,6 +5584,32 @@ components:
type: string
required:
- query
GetProjectDbMetadataResponseDto:
type: object
properties:
databases:
type: array
items:
type: object
properties:
name:
type: string
schemas:
type: array
items:
type: object
properties:
name:
type: string
required:
- name
additionalProperties: true
required:
- name
- schemas
additionalProperties: true
required:
- databases
FunctionResponse:
type: object
properties:
Expand Down Expand Up @@ -5605,6 +5671,36 @@ components:
- slug
- name
- body
FunctionMetadata:
type: object
properties:
entrypoint_path:
type: string
import_map_path:
type: string
static_patterns:
type: array
items:
type: string
verify_jwt:
type: boolean
name:
type: string
required:
- entrypoint_path
FunctionDeployBody:
type: object
properties:
file:
type: array
items:
type: string
format: binary
metadata:
$ref: '#/components/schemas/FunctionMetadata'
required:
- file
- metadata
FunctionSlugResponse:
type: object
properties:
Expand Down
Loading