library-rest
List every author.
GET
/authorsReturns every author on record, ordered by id. This endpoint is not paginated.
Responses
200 The full list of authors.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
| data | array of object | yes | |
| bio | string | yes | A short biography of the author. |
| bookIds | array of string | yes | Ids of the books this author has written. |
| id | string | yes | Unique identifier assigned by the server, prefixed with au_. |
| name | string | yes | The author's full name. |
| 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": [
{
"bio": "bio_224",
"bookIds": [
"bookIds_363"
],
"id": "id_212",
"name": "name_666"
}
],
"meta": {
"requestId": "requestId_825",
"total": 32
}
}