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

Add abuse limits

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

View file

@ -19,6 +19,10 @@ App::post('/v1/graphql')
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_ANY)
->label('abuse-limit', 60)
->label('abuse-time', 60)
->param('query', '', new Text(1024), 'The query to execute. Max 1024 chars.')
->param('operationName', '', new Text(256), 'Name of the operation to execute', true)
->param('variables', [], new JSON(), 'Variables to use in the operation', true)
->inject('request')
->inject('response')
->inject('schema')