fedorablewill / ptu-tools

PokéSheets: A Pokemon Generator/Manager for Pokemon Tabletop United v1.05
3 stars 3 forks source link

Generator API - Homebrew Pokedex Entries #67

Closed fedorablewill closed 6 months ago

fedorablewill commented 2 years ago

Add homebrew field to generatePokemon request. The field will accept an array of PokedexEntry.

Any filters used need to be performed against the Homebrew entries as well.

If false is sent in to pokedex, then do not retrieve any entries from the database.

If false is sent in to pokedex and only one entry was provided to homebrew, then bypass filters and just generate using the provided entry.

If false is sent into pokedex and no entries were provided in homebrew, then thrown a 400 error with message "Homebrew entries must be provided if Pokedex is set to FALSE."