Skip to content

Import deck endpoint #34

@davidyell

Description

@davidyell

Is your feature request related to a problem? Please describe.
An endpoint should be created so that a deck list could be sent to it and the deck imported and saved.

Describe the solution you'd like

  • This can use the deck importer utility from Import decks #32
  • It should store, with the deck, and cards which are not found in the database
  • Payload should be the text of the decklist or the file?
  • Current importer functionality is to take a file, but perhaps easier to work with text instead.

Describe alternatives you've considered
Tried looking at data from Scryfall to have a more up to date datasource. However between those third parties updating their databases, there will be occasions where cards are not found. So these should be persisted, so the next time the deck is imported, or updated the card data could be updated at that time.

Additional context
Some missing cards

  • Shadow Prophecy
  • Wear / Tear

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions