YGOPRODeck icon indicating copy to clipboard operation
YGOPRODeck copied to clipboard

Race, Attribute, and Type Endpoints

Open oatmael opened this issue 3 years ago • 3 comments

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
  }
  ...
]

oatmael avatar Jul 14 '21 04:07 oatmael

I think this could also help solve #288

nathaneastwood avatar Jul 29 '21 06:07 nathaneastwood

We actually have something similar already done for our Deck Builder. Would this be useful to you?

API

API2

AlanOC91 avatar Jul 29 '21 07:07 AlanOC91

Pretty much exactly the data I need - and a bit more

oatmael avatar Jul 29 '21 08:07 oatmael