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

Add Race, Mana Cost and Card Type to cards in API. #69

Open
severinkaderli opened this issue Jul 12, 2021 · 1 comment
Open

Add Race, Mana Cost and Card Type to cards in API. #69

severinkaderli opened this issue Jul 12, 2021 · 1 comment

Comments

@severinkaderli
Copy link
Contributor

I'm working on "a lot" of changes in the client (#11) and one of those is a better / expanded filtering system. It would be great if the cost, race and card type (spell, creature) could be added to the API response of cards. That way I can implement filters for it.

@severinkaderli severinkaderli changed the title Add Race, Mana Cost and Card type to cards in API. Add Race, Mana Cost and Card Type to cards in API. Jul 12, 2021
@sindreslungaard
Copy link
Owner

Updated the API to include family, type and manaCost

{
    "civilization": "fire",
    "family": "Armored Dragon",
    "manaCost": 7,
    "name": "Galklife Dragon",
    "set": "dm-04",
    "type": "Creature",
    "uid": "81ebd0e6-94dc-44e6-958a-6df15dae091c"
}

it's called family to keep it consistent with the rest of the API, but "Race" is probably a better name for the frontend

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

No branches or pull requests

2 participants