{ "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" } ] }