fix for #744
This commit is contained in:
parent
9f988e81d2
commit
79028e714a
5 changed files with 72 additions and 11 deletions
|
|
@ -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}]}
|
||||
|
|
|
|||
|
|
@ -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"}]}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue