Added edit URL
This commit is contained in:
parent
77832b65b0
commit
f8cf90e352
1 changed files with 2 additions and 1 deletions
|
@ -590,7 +590,7 @@ $utopia->get('/v1/open-api-2.json')
|
||||||
'operationId' => $route->getLabel('sdk.method', uniqid()),
|
'operationId' => $route->getLabel('sdk.method', uniqid()),
|
||||||
'consumes' => [],
|
'consumes' => [],
|
||||||
'tags' => [$route->getLabel('sdk.namespace', 'default')],
|
'tags' => [$route->getLabel('sdk.namespace', 'default')],
|
||||||
'description' => $route->getLabel('sdk.description', ''),
|
'description' => file_get_contents(realpath('../') . $route->getLabel('sdk.description', '')),
|
||||||
'responses' => [
|
'responses' => [
|
||||||
200 => [
|
200 => [
|
||||||
'description' => 'An paged array of pets',
|
'description' => 'An paged array of pets',
|
||||||
|
@ -607,6 +607,7 @@ $utopia->get('/v1/open-api-2.json')
|
||||||
'cookies' => $route->getLabel('sdk.cookies', false),
|
'cookies' => $route->getLabel('sdk.cookies', false),
|
||||||
'location' => $route->getLabel('sdk.location', false),
|
'location' => $route->getLabel('sdk.location', false),
|
||||||
'demo' => 'docs/examples/'.fromCamelCaseToDash($route->getLabel('sdk.namespace', 'default')).'/'.fromCamelCaseToDash($temp['operationId']).'.md',
|
'demo' => 'docs/examples/'.fromCamelCaseToDash($route->getLabel('sdk.namespace', 'default')).'/'.fromCamelCaseToDash($temp['operationId']).'.md',
|
||||||
|
'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $route->getLabel('sdk.description', ''),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue