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

V2 Feature: /search now returns more helpful data #535

Conversation

calumbell
Copy link
Contributor

This PR was created to address minor errorsin how the Open5e API V2 /search endpoint functioned which were exposed during the front-end migration over to V2.

These changes update which fields are included in the object properties of results returned by the /search endpoint. In some cases these were changed to improve aesthetics and navigation on the front-end (ie. for a creature, it is much more important to sees its Type on the /search page, rather than, say, its AC), but in other cases these extra fields are vital to link to the correct page on the website (ie. the CharacterClass endpoint now returns both base- and sub- classes, these resources are accessed via different URL structures, so it is critical to have this information on the FE if we want to link to the searched resource)

@augustjohnson augustjohnson merged commit ed22a65 into open5e:staging Sep 16, 2024
4 checks passed
@augustjohnson
Copy link
Collaborator

I like it, nice additions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants