-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
If there are no builds, the last attribute of meta points to an invalid URL:
π curl http://localhost:8080/api/v1/builds
{
"items": [],
"meta": {
"first": "http://localhost:8080/api/v1/builds?page=1&per_page=20",
"last": "http://localhost:8080/api/v1/builds?page=0&per_page=20",
"next": null,
"page": 1,
"pages": 0,
"per_page": 20,
"previous": null,
"total": 0
}
}
π curl 'http://localhost:8080/api/v1/builds?page=0&per_page=20"'
{
"error": "The requested resource was not found"
}
meta.last should have the same value as meta.first if there are not builds.
Metadata
Metadata
Assignees
Labels
No labels