-
Notifications
You must be signed in to change notification settings - Fork 44
API V3
Jeffrey Tong edited this page Jun 5, 2015
·
4 revisions
The purpose of V3 was to make the API more restful and remove some methods for the HearthStats Companion
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 |
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 |
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 |
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 |