acyka api

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

fieldtypewhat it is
code stringthe shelf's code

Answering #

200 Page<CollectionItem> a page: items, and total beside it

The shapes #

CollectionItem #

fieldtypewhat it is
shikimori_id number
title string
poster may be absentstring | undefined
added_by may be absentstring | 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.