Files
graphql-engine/server/testcases/drop_view.json
2018-06-28 00:32:00 +05:30

41 lines
802 B
JSON

{
"description": "drop view",
"depends": [],
"items": [
{
"name": "create_schema",
"url": "/api/1/query",
"role": "admin",
"status_code": 200,
"method": "POST",
"user_id": "1",
"pre_sql": [
"CREATE TABLE test(id serial)",
"CREATE VIEW test_view AS (SELECT id FROM test WHERE id > 10)"
],
"request": {
"kind": "add_existing_view",
"body": {
"view": "test_view"
}
}
},
{
"name": "drop view",
"url": "/api/1/query",
"role": "admin",
"status_code": 200,
"method": "POST",
"user_id": "1",
"request": {
"kind": "drop_view",
"body": {
"view": "test_view",
"cascade": true
}
}
}
]
}