I’ve been struggling some time to get the following situation working:
GET /folders => list of folders (folder_id, folder_name, ...) GET /folders/:folder_id/items => list of items (item_id, item_name, ...) belonging to given folder with folder_id GET /folders/:folder_id/items/:item_id => details (details_subject...) of item with item_id belonging to given folder with folder_id
A folder can have one or more items, but an item has only one details which is a single record with a number of fields.
I have some influence over the API so can introduce side-loading links if needed.
I’d be very thankful if someone could point me out to the best way to tackle this.