GET /api/v1/collections/{code}/items
collectionItems
needs lists:read
curl https://api.acyka.cc/api/v1/collections/AbCdEf/items \
-H "Authorization: Bearer $ACYKA_TOKEN" Asking #
In the address
| field | type | what it is |
|---|---|---|
code | string | the shelf's code |
Answering #
200 Page<CollectionItem> a page: items, and total beside it
The shapes #
CollectionItem #
| field | type | what it is |
|---|---|---|
shikimori_id | number | |
title | string | |
poster may be absent | string | undefined | |
added_by may be absent | string | undefined | |
at | string |
When it says no #
A refusal is { "message": "errors.something" } — a phrase name and never a
sentence, because one screen can be read in five languages. Every library turns the name into a
type, so you catch the class you can do something about. Errors has
the list.