davidchambers/tutor — pull request #34 by AsaAyers (2012-10-30 02:37:05+00:00)
Title: Added an API to extract card legalities.

# GET /legality/:id or GET /legality/:name

Returns JSON data regarding which formats the card is legal in including any restrictions it may have. For example:

`/legality/Braids,%20Cabal%20Minion`
```
{
"Odyssey Block":{"legality":"Legal"},
"Legacy":{"legality":"Legal"},
"Vintage":{"legality":"Legal"},
"Freeform":{"legality":"Legal"},
"Prismatic":{"legality":"Legal"},
"Tribal Wars Legacy":{"legality":"Legal"},
"Classic":{"legality":"Legal"},
"Singleton 100":{"legality":"Legal"},
"Commander":{
"legality":"Special",
"conditions":"Banned as Commander"
}
}
```