This commit is contained in:
Maurits van der Schee 2021-01-28 08:18:37 +01:00
commit 79028e714a
5 changed files with 72 additions and 11 deletions

View file

@ -21,6 +21,16 @@ POST /records/comments
[{"user_id":1,"post_id":6,"message":"multi 3","category_id":3},{"user_id":1,"post_id":0,"message":"multi 4","category_id":3}]
===
200
Content-Type: application/json; charset=utf-8
Content-Length: 8
[9,null]
===
GET /records/comments?include=id&filter=post_id,eq,6
===
200
Content-Type: application/json; charset=utf-8
Content-Length: 31
{"records":[{"id":7},{"id":8}]}

View file

@ -23,14 +23,14 @@ PUT /records/comments/7,8
===
200
Content-Type: application/json; charset=utf-8
Content-Length: 5
Content-Length: 8
[0,0]
[1,null]
===
GET /records/comments?include=message&filter=post_id,eq,6
===
200
Content-Type: application/json; charset=utf-8
Content-Length: 14
Content-Length: 57
{"records":[]}
{"records":[{"message":"multi 1"},{"message":"multi 2"}]}