piccolo_api icon indicating copy to clipboard operation
piccolo_api copied to clipboard

PiccoloCRUD `post_single` return id of the inserted row instead of the row

Open JoshYuJump opened this issue 1 year ago • 3 comments

When I create a new item:

POST /items
{
    "name": "testing"
}

It response the id of the inserted row, in array format

[{"id": 1}]

How to get response of the row

{
    "id": 1,
    "name": "testing"
}

JoshYuJump avatar Sep 20 '23 12:09 JoshYuJump