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/herbs
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/387", "https://www.pepysdiary.com/api/v1/topics/5545", "https://www.pepysdiary.com/api/v1/topics/6861", "https://www.pepysdiary.com/api/v1/topics/388", "https://www.pepysdiary.com/api/v1/topics/451", "https://www.pepysdiary.com/api/v1/topics/386", "https://www.pepysdiary.com/api/v1/topics/8975", "https://www.pepysdiary.com/api/v1/topics/8974", "https://www.pepysdiary.com/api/v1/topics/1328" ], "apiURL": "https://www.pepysdiary.com/api/v1/categories/herbs", "webURL": "https://www.pepysdiary.com/encyclopedia/fooddrink/food/herbs/" }{ "slug": "herbs", "title": "Herbs, spices and condiments", "topicCount": 9, "depth": 3, "parents": [ "