zzorba / marvelsdb

MarvelsDB - a deck builders for Marvel Champions - The Card Game
49 stars 28 forks source link

Api does not seem to expose encounter cards #219

Closed bkkoluch closed 6 months ago

bkkoluch commented 7 months ago

I can query encounter cards by /api/public/card/{card_code} endpoint, but those are not returned in /api/public/cards/. Maybe some filter could be available in /api/public/cards/ endpoint to query by type? For example {'faction' : 'encounter'} would return all encounter cards.

Kamalisk commented 6 months ago

its not well documened, but I believe ?encounter=1 will also fetch the encounter cards.

bkkoluch commented 6 months ago

@Kamalisk oh my, thank you, I've had totally no idea 👍.

bkkoluch commented 6 months ago

@Kamalisk is there a possibility to filter out hero cards and only fetch encounter ones?

For example ?encounter=1&hero=0 or sth of that sort?