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
10 changes: 5 additions & 5 deletions smithy/model/functions.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -65,37 +65,37 @@ structure InvokeFunctionOutput {
// methods Supabase Edge Functions accept; FunctionsClient.invoke() dispatches
// to the appropriate generated method based on FunctionInvokeOptions.method.

@http(method: "GET", uri: "/functions/v1/{functionName}", code: 200)
@http(method: "GET", uri: "/functions/v1/{functionName+}", code: 200)
@readonly
operation InvokeFunctionGet {
input: InvokeFunctionGetInput
output: InvokeFunctionOutput
errors: [FunctionsError]
}

@http(method: "POST", uri: "/functions/v1/{functionName}", code: 200)
@http(method: "POST", uri: "/functions/v1/{functionName+}", code: 200)
operation InvokeFunctionPost {
input: InvokeFunctionInput
output: InvokeFunctionOutput
errors: [FunctionsError]
}

@http(method: "PUT", uri: "/functions/v1/{functionName}", code: 200)
@http(method: "PUT", uri: "/functions/v1/{functionName+}", code: 200)
@idempotent
operation InvokeFunctionPut {
input: InvokeFunctionInput
output: InvokeFunctionOutput
errors: [FunctionsError]
}

@http(method: "PATCH", uri: "/functions/v1/{functionName}", code: 200)
@http(method: "PATCH", uri: "/functions/v1/{functionName+}", code: 200)
operation InvokeFunctionPatch {
input: InvokeFunctionInput
output: InvokeFunctionOutput
errors: [FunctionsError]
}

@http(method: "DELETE", uri: "/functions/v1/{functionName}", code: 200)
@http(method: "DELETE", uri: "/functions/v1/{functionName+}", code: 200)
@idempotent
@suppress(["HttpMethodSemantics.UnexpectedPayload"])
operation InvokeFunctionDelete {
Expand Down
12 changes: 6 additions & 6 deletions smithy/openapi/FunctionsService.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "1.0"
},
"paths": {
"/functions/v1/{functionName}": {
"/functions/v1/{functionName+}": {
"delete": {
"operationId": "InvokeFunctionDelete",
"requestBody": {
Expand All @@ -19,7 +19,7 @@
},
"parameters": [
{
"name": "functionName",
"name": "functionName+",
"in": "path",
"schema": {
"type": "string"
Expand Down Expand Up @@ -70,7 +70,7 @@
"operationId": "InvokeFunctionGet",
"parameters": [
{
"name": "functionName",
"name": "functionName+",
"in": "path",
"schema": {
"type": "string"
Expand Down Expand Up @@ -130,7 +130,7 @@
},
"parameters": [
{
"name": "functionName",
"name": "functionName+",
"in": "path",
"schema": {
"type": "string"
Expand Down Expand Up @@ -190,7 +190,7 @@
},
"parameters": [
{
"name": "functionName",
"name": "functionName+",
"in": "path",
"schema": {
"type": "string"
Expand Down Expand Up @@ -250,7 +250,7 @@
},
"parameters": [
{
"name": "functionName",
"name": "functionName+",
"in": "path",
"schema": {
"type": "string"
Expand Down