mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
84 lines
1.6 KiB
JSON
84 lines
1.6 KiB
JSON
{
|
|
"description": "schema test",
|
|
"depends": [],
|
|
"items": [
|
|
{
|
|
"name": "create_schema",
|
|
"url": "/api/1/query",
|
|
"role": "admin",
|
|
"status_code": 200,
|
|
"method": "POST",
|
|
"user_id": "1",
|
|
"request": {
|
|
"kind": "create_table",
|
|
"body": {
|
|
"primary_key": [
|
|
"id"
|
|
],
|
|
"name": "author",
|
|
"columns": [
|
|
{
|
|
"type": "serial",
|
|
"name": "id"
|
|
},
|
|
{
|
|
"type": "varchar",
|
|
"name": "email"
|
|
},
|
|
{
|
|
"type": "varchar",
|
|
"name": "name"
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"name": "auth_id"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "create_schema",
|
|
"url": "/api/1/query",
|
|
"role": "admin",
|
|
"status_code": 200,
|
|
"method": "POST",
|
|
"user_id": "1",
|
|
"request": {
|
|
"kind": "create_table",
|
|
"body": {
|
|
"primary_key": [
|
|
"id"
|
|
],
|
|
"name": "article",
|
|
"columns": [{
|
|
"type": "serial",
|
|
"name": "id"
|
|
}]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "create_schema",
|
|
"url": "/api/1/query",
|
|
"role": "admin",
|
|
"status_code": 400,
|
|
"method": "POST",
|
|
"user_id": "1",
|
|
"request": {
|
|
"kind": "create_table",
|
|
"body": {
|
|
"primary_key": [
|
|
"id"
|
|
],
|
|
"name": "article",
|
|
"columns": [{
|
|
"type": "serial",
|
|
"name": "id"
|
|
}]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|