ontehfritz / api.mtgdb.info

Project closing first of August 2015
http://www.mtgdb.info/
MIT License
36 stars 8 forks source link

Filter fields, allow to specify fields to be returned in the query #25

Closed ontehfritz closed 10 years ago

ontehfritz commented 10 years ago

Allow the ability to select which fields to be returned in the query, this is good if you just want a list of card ids, or just the names etc

AnthonyMDev commented 10 years ago

This is the feature that I would appreciate most of this api. Thanks for the awesome API!

ontehfritz commented 10 years ago

no problem, love to hear that developers like it!

ontehfritz commented 10 years ago

Implemented on /cards/ and sets/[id]/cards.

http://api.mtgdb.info/cards/?fields=id,name,cardsetid http://api.mtgdb.info/sets/THS/cards/?fields=setnumber,id,name

If it is needed on other methods a new issue can be created.