mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-05-25 18:32:23 +08:00
61 lines
1.1 KiB
JSON
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"
|
|
}
|
|
]
|
|
} |