Skip to content

Commit

Permalink
Update README with API v4 details
Browse files Browse the repository at this point in the history
  • Loading branch information
glacials committed Oct 1, 2016
1 parent e232071 commit beb8789
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions README.md
Expand Up @@ -37,27 +37,25 @@ npm run autotest
### API
We've got an API. It's super slim and the output is written by hand but it works like a charm.

#### [/api/3/sets.json][5]
#### [/api/4/sets.json][5]

This is the only API call we have. It returns a JSON array of sets which looks something like this:

```json
[
{
"name": "Dragons of Tarkir",
"block": "Khans of Tarkir",
"code": "DTK",
"symbol": "http://whatsinstandard.com/img/dtk.svg",
"enter_date": "2015-03-27T00:00:00.000Z",
"exit_date": null,
"rough_exit_date": "late 2016"
"name": "Battle for Zendikar",
"block": "Battle for Zendikar",
"code": "BFZ",
"enter_date": "2015-10-02T00:00:00.000Z",
"exit_date": "2017-04-28T00:00:00.000Z",
"rough_exit_date": "Q2 2017"
},
...
]
```

The array is guaranteed to contain all sets currently in Standard and no other sets (unlike the website, which shows a
few upcoming sets grayed out).
The array is guaranteed to contain all sets currently in Standard plus the next two to three unreleased sets.

For API details see [the API readme][6].

Expand All @@ -79,6 +77,6 @@ Thanks to:
[2]: http://mtgimage.com/
[3]: http://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&set=RTR&size=large&rarity=C
[4]: https://github.com/bower/bower
[5]: http://whatsinstandard.com/api/3/sets.json
[5]: http://whatsinstandard.com/api/4/sets.json
[6]: https://github.com/glacials/whatsinstandard/blob/gh-pages/api
[7]: https://github.com/jninnes/mtgicons

0 comments on commit beb8789

Please sign in to comment.