library-rest
[Admin/demo-only] Reset the demo stand to its seed data.
POST
/_admin/resetWipes every runtime mutation (all creates/updates/deletes/borrows/ returns since the server started or was last reset) and reloads the deterministic seed dataset, restoring the exact snapshot the demo started with. Not one of the library's 13 business actions — this exists so a demo or CI run can return to a known state.
Responses
200 The store was reset; counts reflect the freshly reloaded seed data.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
| data | object | yes | [Admin/demo-only] Current record counts, not one of the library's 13 business actions. |
| authors | integer | yes | Number of authors currently on record. |
| books | integer | yes | Number of books currently in the catalog. |
| loans | integer | yes | Number of loans (open and closed) on record. |
| users | integer | yes | Number of registered users. |
| meta | object | yes | Response metadata attached to every successful response. |
| requestId | string | yes | Correlation id for this request, echoed from the X-Request-Id request header or generated if absent. Useful for tracing a request across logs. |
| total | integer | Total number of matches before pagination was applied. Present only on paginated list responses (currently GET /books). |
Errors
| Code | Message | Description |
|---|---|---|
| 401 | The request is missing a valid Authorization: Bearer <token> header. | |
| 500 | An unexpected error occurred. The response never leaks internal error details. |
Response example
{
"data": {
"authors": 945,
"books": 319,
"loans": 769,
"users": 628
},
"meta": {
"requestId": "requestId_93",
"total": 891
}
}