graphql-engine/server/tests-py/queries/v1/metadata/clear_metadata.yaml
Solomon Bothwell d88e2bbcce server: add tests ensuring the correct functioning of all endpoints based on user roles
https://github.com/hasura/graphql-engine-mono/pull/1625

Co-authored-by: Sameer Kolhar <6604943+kolharsam@users.noreply.github.com>
GitOrigin-RevId: 6b56efc838d2ed1acc44b2847161fde22d6aee17
2021-07-16 16:09:25 +00:00

25 lines
489 B
YAML

- description: Clear metadata
url: /v1/metadata
headers:
X-Hasura-Role: admin
status: 200
response:
message: success
query:
type: clear_metadata
args: {}
- description: Check if metadata is cleared
url: /v1/query
headers:
X-Hasura-Role: admin
status: 200
# FIXME:- Using export_metadata will dump
# the source configuration dependent on --database-url
# response:
# version: 2
# tables: []
query:
type: export_metadata
args: {}