mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 07:15:25 +00:00
Add examples for DB (#141)
This commit is contained in:
28
db/examples.json
Normal file
28
db/examples.json
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"create": [{
|
||||||
|
"title": "Create a record",
|
||||||
|
"request": {
|
||||||
|
"record": "{\"id\": \"1\", \"name\": \"Jane\", \"age\": 42, \"isActive\":true}"
|
||||||
|
},
|
||||||
|
"response": {
|
||||||
|
"id": "1"
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
"update": [{
|
||||||
|
"title": "Update a record",
|
||||||
|
"request": {
|
||||||
|
"record": "{\"id\": \"1\", \"age\": 43}"
|
||||||
|
},
|
||||||
|
"response": {
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
"read": [{
|
||||||
|
"title": "Read records",
|
||||||
|
"request": {
|
||||||
|
"query": "age == 43"
|
||||||
|
},
|
||||||
|
"response": {
|
||||||
|
"records": "[{\"id\": \"1\", \"name\": \"Jane\", \"age\": 43, \"isActive\":true}]"
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user