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

61 lines
1.1 KiB
JSON

{
"description": "check author table permissions",
"depends": [
"permission.json"
],
"items": [
{
"name": "create author B1 as admin",
"url": "/api/1/table/author/insert",
"role": "admin",
"user_id": "1",
"status_code": 200,
"request": {
"objects": [
{
"name": "B1",
"auth_id": 1,
"email": "google@gmail.com"
},
{
"name": "B2",
"auth_id": 1,
"email": "google@pmail.com"
}
],
"returning": [
"id"
]
},
"response": {
"affected_rows": 2,
"returning": [
{
"id": 1
},
{
"id": 2
}
]
},
"method": "POST"
},
{
"name": "create author B1 as admin",
"url": "/api/1/query",
"role": "admin",
"user_id": "1",
"response": {
"count": 2
},
"status_code": 200,
"request": {
"kind": "count",
"body": {
"table": "author"
}
},
"method": "POST"
}
]
}