Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a Categories API endpoint that allows us to learn the hierarchical structure of Categories (parents/children). #2

Open
cswendrowski opened this issue Jun 12, 2020 · 3 comments
Labels
wa-api Issues which need additional features from the World Anvil API in order to become possible.

Comments

@cswendrowski
Copy link

In GitLab by @telescopesd on Jun 12, 2020, 18:05

As of right now, categories you can import are all over the place. Despite in World Anvil, some categories being sub-categories of a parent category, Foundry does not represent this, despite having support for multiple folders in one folder. It would be nice if WAI would allow you to import a category and sub-category without having to adjust the folders yourself. Additionally, categories in World Anvil with no articles in them (but have sub-categories within) do not display on the WAI list.

@cswendrowski
Copy link
Author

This should be possible, but in order to support it we will need a Categories API from World Anvil so we can learn the hierarchical structure. Currently we don't get that metadata so this will be a request for Dimitris!

@cswendrowski
Copy link
Author

In GitLab by @admiralnlson on Nov 22, 2020, 04:23

Note WA has a hierarchical structure for Categories, but for Articles also.

Foundry's WAI imports child articles successfully. However they are currently listed as category-less even when the parent article is part of a category (which in WA automatically means all child articles are part of that category too).

Dimitris may need to add article parent/child info to the WA API as well.

@cswendrowski
Copy link
Author

I'm not certain whether this is present in the WA provided data and it simply meeds to be handled better in Foundry, or whether the hierarchical relationships are not present in the API output that comes from WA. Needs investigation. Certainly Foundry could support hierarchical categories up to a certain maximum depth via the folder structure that the entries import into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wa-api Issues which need additional features from the World Anvil API in order to become possible.
Projects
None yet
Development

No branches or pull requests

1 participant