1
0
Fork 0
mirror of synced 2024-06-30 20:21:16 +12:00

Added edit URL

This commit is contained in:
eldadfux 2019-10-09 11:24:13 +03:00
parent 77832b65b0
commit f8cf90e352

View file

@ -590,7 +590,7 @@ $utopia->get('/v1/open-api-2.json')
'operationId' => $route->getLabel('sdk.method', uniqid()),
'consumes' => [],
'tags' => [$route->getLabel('sdk.namespace', 'default')],
'description' => $route->getLabel('sdk.description', ''),
'description' => file_get_contents(realpath('../') . $route->getLabel('sdk.description', '')),
'responses' => [
200 => [
'description' => 'An paged array of pets',
@ -607,6 +607,7 @@ $utopia->get('/v1/open-api-2.json')
'cookies' => $route->getLabel('sdk.cookies', false),
'location' => $route->getLabel('sdk.location', false),
'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', ''),
];
}