获取所有记录
GET /records
Parameters
| Name |
Description |
|
page
|
页码
|
|
order
|
排序规则,如 "created_at asc, id desc"
|
Response Fields
| Name |
Description |
|
resources
|
Record 对象数组
|
|
pagination
|
分页信息
|
Request
Headers
Route
GET /records?page=1
Query Parameters
page: 1
Response
Headers
Status
200 OK
Body
{
"resources": [
{
"id": 544,
"amount": 10000,
"notes": null,
"category": "outgoings",
"user_id": 875,
"created_at": "2020-03-03T22:37:58.020Z",
"updated_at": "2020-03-03T22:37:58.020Z",
"discarded_at": null,
"tag_ids": [
]
},
{
"id": 545,
"amount": 20000,
"notes": null,
"category": "outgoings",
"user_id": 875,
"created_at": "2020-03-03T22:37:58.022Z",
"updated_at": "2020-03-03T22:37:58.022Z",
"discarded_at": null,
"tag_ids": [
]
}
],
"pagination": {
"current_page": 1,
"per_page": 25,
"next_page": null,
"prev_page": null,
"total_pages_count": 1,
"total_count": 2
}
}