NetrunnerDB / netrunnerdb-api-server

API Server for NetrunnerDB
Apache License 2.0
4 stars 5 forks source link

Non-game cards #262

Open distributive opened 2 months ago

distributive commented 2 months ago

An endpoint for non-game cards, with a link to an image/set of images.

Suggested schema:

  title [string],
  text [string],
  images: {
    large [string]
    medium[string]
    small[string]
    tiny [string]
  },
  type [MetaCardType]
}

MetaCardType = [ gameAid, lore, information, art ]

Examples of each card type:

We don't need every non-game card, but some (notably the basic action cards and the mark cards) would be good for people to be able to proxy.

plural commented 2 months ago

how do you want people to proxy these via NRDB? Should we host these or link to pdfs with them?

plural commented 2 months ago

how do you expect these will be displayed/integrated on the site?

distributive commented 2 months ago

how do you want people to proxy these via NRDB? Should we host these or link to pdfs with them?

We should host these the same way we do regular card images

how do you expect these will be displayed/integrated on the site?

Don't know yet, but I think they should be

distributive commented 2 months ago

Example output for a few cards:

HQ Mark

{
  id: "mark_hq",
  type: "metacards",
  attributes: {
    title: "HQ Mark",
    text: "",
    images: {
      large: "...",
      medium: "...",
      small: "...",
      tiny: "..."
    },
    meta_card_type: "game_aid"
  }
}

Factions & Influence

{
  id: "gateway_factions_and_influence",
  type: "metacards",
  attributes: {
    title: "Factions and Influence",
    text: "Factions and influence restrict deckbuilding options, allowing each faction to have its own distinct play...",
    images: {
      large: "...",
      medium: "...",
      small: "...",
      tiny: "..."
    },
    meta_card_type: "information"
  }
}

Mercury lore insert

{
  id: "the_automata_initiative_mercury",
  type: "metacards",
  attributes: {
    title: "Mercury",
    text: "\"The hue of your soul, the voice of your spirit, the shape of your flesh are yours to decide. Be free.\" Built by HB as...",
    images: {
      large: "...",
      medium: "...",
      small: "...",
      tiny: "..."
    },
    meta_card_type: "lore"
  }
}

Parhelion pack front

{
  id: "parhelion_pack_art",
  type: "metacards",
  attributes: {
    title: "Parhelion: Borealis: Part 2",
    text: "Compatible with Netrunner",
    images: {
      large: "...",
      medium: "...",
      small: "...",
      tiny: "..."
    },
    meta_card_type: "art"
  }
}