API V3 - HearthStats/hearthstats GitHub Wiki
The purpose of V3 was to make the API more restful and remove some methods for the HearthStats Companion
User
Endpoint |
Description |
POST /users/sign_in |
Sign user in |
POST /users/sign_up |
Register a new user |
POST /users/premium |
Checks if the user is a premium user |
Match
Endpoint |
Description |
POST /matches |
Create a new match |
DELETE /matches/:id |
Deletes the match |
POST /matches/multi_create |
Create multiple matches from one request |
POST /matches/after_date |
Returns all matches that belongs to a user after a date |
POST /matches/multi_destroy |
Destroy multiple matches |
Deck
Endpoint |
Description |
GET /decks |
Returns all decks that belongs to the user |
POST /decks |
Create a new deck |
POST /decks/edit |
Edit a deck |
DELETE /decks/:id |
Deletes the deck |
POST /decks/multi_create |
Create multiple decks from one request |
POST /decks/after_date |
Returns all decks that belongs to a user after a date |
POST /decks/multi_destroy |
Destroy multiple decks |
Arena Run
Endpoint |
Description |
GET /arena_runs/show |
Returns user's last arena run |
POST /arena_runs/new |
Creates a new arena run |
POST /arena_runs/end |
Ends an arena run |