This repository was archived by the owner on Nov 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Backend
Kumar Anirudha edited this page Jul 25, 2019
·
4 revisions
Version: v1
{
"success": true, // true or false | boolean
"statusCode": 200, // Follow [HTTP Status Code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes)
"data": {}, // Object
"errors": {}, // Object
"message": "Message" // String
}
Base Api: /user
| endpoint | method | description | auth header |
|---|---|---|---|
| / | POST | Create New User | no |
| /login | POST | User Login | no |
| /:userId | GET | Fetch User Data by userId | yes |
| /:userId | PUT | Update User Data by userId | yes |
Base Api: /topic
| endpoint | method | description | auth header |
|---|---|---|---|
| / | POST | Create New Topic | yes |
| /:topicId | PUT | Update Topic Data | yes |
| / | GET | Fetch all Topics | yes |
| /:topicId | GET | Fetch Topic Data by topicId | yes |
| /:topicId | DELETE | Delete Topic Data by topicId | yes |
Base Api: /resource
| endpoint | method | description | auth header |
|---|---|---|---|
| / | GET | Fetch all Resources | yes |
| /:resourceId | GET | Fetch Resource Data by resourceId | yes |
Base Api: /game
| endpoint | method | description | auth header |
|---|---|---|---|
| / | POST | Create New UAG (Unlimited Amos Game) | yes |
| / | GET | Fetch all Amos Games | yes |
| /:gameId | GET | Fetch Amos Game Data by gameId | yes |
| /:gameId/vote | POST | Vote on Amos Game Data by gameId | yes |
| /:gameId/vote | GET | Fetch Votes for Amos Game Data by gameId | yes |
Base Api: /notification
| endpoint | method | description | auth header |
|---|---|---|---|
| / | GET | Fetch all notifications | yes |
| /read | POST | Read an existing notification | yes |