library-rpc
[Admin/demo-only] Reset the demo stand to its seed data.
RPC
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. Takes no parameters.
Servers
•
mock: https://mock.api.selfdochub.com/rpcResponses
result Record counts reflecting the freshly reloaded seed data.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
| 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. |
Request example
{
"id": 1,
"jsonrpc": "2.0",
"method": "admin.reset",
"params": {}
}Response example
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"authors": 577,
"books": 16,
"loans": 924,
"users": 556
}
}