Unofficial Java SDK for using the magicthegathering.io APIs
This SDK aims to provide more advanced filters than those available with the API itself, by adding a filtering pass on the results returned by the API endpoint.
Publication to Maven Central pending.
If you want all cards whose name start with "Champion", you'll write (with the help of a few static imports):
CardApi cardApi = new CardApi();
List<Cards> result = cardApi.find(query()
.name(startsWith("Champion"))
);
- Card Name (case insensitive)
- Exact match
- Contains text
- Starting with a prefix
- Ending with a suffix