1
0
Fork 0
mirror of synced 2024-09-28 07:21:35 +12:00

feat: update creation endpoint

This commit is contained in:
Christy Jacob 2022-02-06 13:25:10 +04:00
parent a9c1b96de5
commit 20415aaafd
2 changed files with 3 additions and 2 deletions

View file

@ -599,7 +599,7 @@ function runBuildStage(string $buildId, string $projectID, string $path, array $
}
}
App::post('/v1/functions/:functionId/executions')
App::post('/v1/execution')
->desc('Execute a function')
->param('functionId', '', new Text(1024), 'The FunctionID to execute')
->param('deploymentId', '', new Text(1024), 'The deployment ID to execute')

View file

@ -101,13 +101,14 @@ class Executor
string $userId
)
{
$route = "/functions/$functionId/executions";
$route = "/execution";
$headers = [
'content-type' => 'application/json',
'x-appwrite-project' => $projectId,
'x-appwrite-executor-key' => App::getEnv('_APP_EXECUTOR_SECRET', '')
];
$params = [
'functionId' => $functionId,
'deploymentId' => $deploymentId,
'buildId' => $buildId,
'path' => $path,