YGOPRODeck
YGOPRODeck copied to clipboard
Race, Attribute, and Type Endpoints
I understand that this issue may seem a duplicate of #132 , however I believe the intention here was misunderstood.
I believe that it would be beneficial to have endpoints to return a list of constants for Race, Attribute, and Type. For similar reasoning to there being an Archetype list, having a list of these accessible for searching would be beneficial for services that use your API for maintainability, as whenever Konami decides to release a new card type/attribute/race (and you know they will), these services have to update their list of constants to reflect these changes.
A simple endpoint/endpoints to handle this with a structure like this for example:
GET https://db.ygoprodeck.com/api/v7/cardtypes.php
[
{
"card_type": "Effect Monster",
"is_extradeck": false
}
...
]
I think this could also help solve #288
We actually have something similar already done for our Deck Builder. Would this be useful to you?
Pretty much exactly the data I need - and a bit more