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

31 lines
637 B
JSON

{
"description": "basic permissions check",
"depends": [
"author_article_category.json"
],
"items": [
{
"name": "declare select permissions on category",
"status_code": 400,
"url": "/api/1/query",
"role": "user",
"user_id": "1",
"method": "POST",
"request": {
"kind": "create_select_permission",
"body": {
"role": "user",
"table": "category",
"perm": {
"columns": [
"id",
"name",
"description"
],
"filter": {}
}
}
}
}
]
}