Files
2026-10-12 05:18:59 -04:00

167 lines
6.0 KiB
JSON

[
{
"request": "GET /api/client/servers/5e7f0001-0000-4000-8000-000000000001/backups",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "backup",
"attributes": {
"uuid": "bacc0001-0000-4000-8000-000000000001",
"is_successful": true,
"is_locked": true,
"name": "Nightly",
"ignored_files": [
"*.log",
"cache/"
],
"checksum": "sha1:0123456789abcdef",
"bytes": 1048576,
"created_at": "2026-01-02T03:04:05+00:00",
"completed_at": "2026-01-02T04:04:05+00:00"
}
},
{
"object": "backup",
"attributes": {
"uuid": "bacc0002-0000-4000-8000-000000000002",
"is_successful": false,
"is_locked": false,
"name": "Failed attempt",
"ignored_files": [],
"checksum": null,
"bytes": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"completed_at": "2026-01-02T03:14:05+00:00"
}
},
{
"object": "backup",
"attributes": {
"uuid": "bacc0003-0000-4000-8000-000000000003",
"is_successful": false,
"is_locked": false,
"name": "In progress",
"ignored_files": [
"world/"
],
"checksum": null,
"bytes": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"completed_at": null
}
}
],
"meta": {
"backup_count": 2,
"pagination": {
"total": 3,
"count": 3,
"per_page": 20,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
},
{
"request": "GET /api/client/servers/5e7f0001-0000-4000-8000-000000000001/backups?per_page=1",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "backup",
"attributes": {
"uuid": "bacc0001-0000-4000-8000-000000000001",
"is_successful": true,
"is_locked": true,
"name": "Nightly",
"ignored_files": [
"*.log",
"cache/"
],
"checksum": "sha1:0123456789abcdef",
"bytes": 1048576,
"created_at": "2026-01-02T03:04:05+00:00",
"completed_at": "2026-01-02T04:04:05+00:00"
}
}
],
"meta": {
"backup_count": 2,
"pagination": {
"total": 3,
"count": 1,
"per_page": 1,
"current_page": 1,
"total_pages": 3,
"links": {
"next": "https://panel.example.test/api/client/servers/5e7f0001-0000-4000-8000-000000000001/backups?page=2"
}
}
}
}
},
{
"request": "GET /api/client/servers/5e7f0001-0000-4000-8000-000000000001/backups?per_page=1&page=2",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "backup",
"attributes": {
"uuid": "bacc0002-0000-4000-8000-000000000002",
"is_successful": false,
"is_locked": false,
"name": "Failed attempt",
"ignored_files": [],
"checksum": null,
"bytes": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"completed_at": "2026-01-02T03:14:05+00:00"
}
}
],
"meta": {
"backup_count": 2,
"pagination": {
"total": 3,
"count": 1,
"per_page": 1,
"current_page": 2,
"total_pages": 3,
"links": {
"previous": "https://panel.example.test/api/client/servers/5e7f0001-0000-4000-8000-000000000001/backups?page=1",
"next": "https://panel.example.test/api/client/servers/5e7f0001-0000-4000-8000-000000000001/backups?page=3"
}
}
}
}
},
{
"request": "GET /api/client/servers/5e7f0001-0000-4000-8000-000000000001/backups?per_page=1&page=99",
"status": 200,
"body": {
"object": "list",
"data": [],
"meta": {
"backup_count": 2,
"pagination": {
"total": 3,
"count": 0,
"per_page": 1,
"current_page": 99,
"total_pages": 3,
"links": {
"previous": "https://panel.example.test/api/client/servers/5e7f0001-0000-4000-8000-000000000001/backups?page=98"
}
}
}
}
}
]