1
0
Fork 0
mirror of synced 2024-06-28 19:20:25 +12:00

Update route labels

This commit is contained in:
Jake Barnby 2022-04-07 18:39:33 +12:00
parent 13c16dc18c
commit 4a34971043
No known key found for this signature in database
GPG key ID: A4674EBC0E404657

View file

@ -9,7 +9,16 @@ use Utopia\App;
App::post('/v1/graphql')
->desc('GraphQL Endpoint')
->groups(['api', 'grapgql'])
->label('scope', 'graphql')
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT])
->label('sdk.namespace', 'graphql')
->label('sdk.method', 'execute')
->label('sdk.description', '/docs/references/graphql/execute.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_ANY)
->label('abuse-limit', 60)
->inject('request')
->inject('response')
->inject('schema')