Category Instance
Fetch one or more Encyclopedia Categories.
Categories are in a tree structure and so each one has zero or more
parents
and children
.
Each Category contains zero or more Topics.
Add the page
to get further pages of results, e.g.:
categories?page=2
Fetch more data about a single Category using its slug, e.g.:
categories/london
GET /api/v1/categories/baked
https://www.pepysdiary.com/api/v1/categories/fooddrink", "https://www.pepysdiary.com/api/v1/categories/food" ], "children": [], "topics": [ "https://www.pepysdiary.com/api/v1/topics/6544", "https://www.pepysdiary.com/api/v1/topics/396", "https://www.pepysdiary.com/api/v1/topics/394", "https://www.pepysdiary.com/api/v1/topics/395", "https://www.pepysdiary.com/api/v1/topics/4140", "https://www.pepysdiary.com/api/v1/topics/3371", "https://www.pepysdiary.com/api/v1/topics/5149", "https://www.pepysdiary.com/api/v1/topics/7444", "https://www.pepysdiary.com/api/v1/topics/11846", "https://www.pepysdiary.com/api/v1/topics/4007" ], "apiURL": "https://www.pepysdiary.com/api/v1/categories/baked", "webURL": "https://www.pepysdiary.com/encyclopedia/fooddrink/food/baked/" }{ "slug": "baked", "title": "Baked goods", "topicCount": 10, "depth": 3, "parents": [ "