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

Add graphql sdk method type

This commit is contained in:
Jake Barnby 2022-07-21 16:37:34 +12:00
parent 1899b3ccd2
commit f8649a1a8d

View file

@ -21,6 +21,7 @@ App::get('/v1/graphql')
->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
->label('sdk.namespace', 'graphql')
->label('sdk.method', 'query')
->label('sdk.methodType', 'graphql')
->label('sdk.description', '/docs/references/graphql/query.md')
->label('sdk.parameters', ['query' => ['default' => '', 'validator' => new JSON(), 'description' => 'The query or queries to execute.', 'optional' => false]])
->label('sdk.response.code', Response::STATUS_CODE_OK)
@ -41,6 +42,7 @@ App::post('/v1/graphql')
->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
->label('sdk.namespace', 'graphql')
->label('sdk.method', 'mutate')
->label('sdk.methodType', 'graphql')
->label('sdk.description', '/docs/references/graphql/mutate.md')
->label('sdk.parameters', ['query' => ['default' => '', 'validator' => new JSON(), 'description' => 'The query or queries to execute.', 'optional' => false]])
->label('sdk.response.code', Response::STATUS_CODE_OK)
@ -61,6 +63,7 @@ App::post('/v1/graphql/upload')
->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
->label('sdk.namespace', 'graphql')
->label('sdk.method', 'upload')
->label('sdk.methodType', 'graphql')
->label('sdk.description', '/docs/references/graphql/upload.md')
->label('sdk.methodType', 'upload')
->label('sdk.parameters', ['query' => ['default' => '', 'validator' => new JSON(), 'description' => 'The query or queries to execute.', 'optional' => false]])