1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Added rate limit data to spec

This commit is contained in:
eldadfux 2019-10-12 22:24:31 +03:00
parent b65e25c321
commit 3e91636799

View file

@ -609,6 +609,8 @@ $utopia->get('/v1/open-api-2.json')
'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', ''),
'rate-limit' => $route->getLabel('abuse-limit', 0),
'rate-time' => $route->getLabel('abuse-time', 3600),
];
}