onecrayon / api.ashes.live

Backend API for a fan-developed deckbuilder and community website for the card game Ashes Reborn
ISC License
13 stars 3 forks source link

Port cards API #9

Closed onecrayon closed 4 years ago

onecrayon commented 4 years ago

This is a high priority because it is necessary to start work on the front-end application. This depends on #7 since we need to distinguish between legacy and Reborn cards.

Card create POST /v2/cards

Listing endpoint GET /v2/cards

Open questions

Card details GET /v2/cards/{stub}

Card detail endpoint will be used for tooltips around the front-end, so it needs to be fast. Tooltips need full card data and conjuration lists. For now, the JSON should mainly just be what's already stored in the database, although I may revisit the storage for cards because I think it might be a bit over-engineered.