library-rpc
[Admin/demo-only] Report current record counts.
RPC
admin.stateReturns how many books, authors, users and loans currently exist — useful for sanity-checking the demo stand's state without dumping all of its data. Takes no parameters.
Servers
•
mock: https://mock.api.selfdochub.com/rpcResponses
result Current record counts.
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.state",
"params": {}
}Response example
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"authors": 554,
"books": 612,
"loans": 966,
"users": 464
}
}