Skip to content

Unofficial Java SDK for using the magicthegathering.io APIs

License

Notifications You must be signed in to change notification settings

christopheml/mtgapi-sdk-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mtgapi-sdk-java

Unofficial Java SDK for using the magicthegathering.io APIs

Build Status Sonar Quality Gate

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.

Installation

Publication to Maven Central pending.

Usage

Querying cards

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")) 
);

Available filters

  • Card Name (case insensitive)
    • Exact match
    • Contains text
    • Starting with a prefix
    • Ending with a suffix

About

Unofficial Java SDK for using the magicthegathering.io APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages