/bs_api1

Primary LanguageJavaScript

APIs Lookup

Method URL Action
Users
1 GET /api/v1/users Gets all users
2 POST /api/v1/users/create Creates a new user
3 GET /api/v1/users/confirm-account/:token Activate the user
4 PUT /api/v1/users/reset-password-request Send reset password access link
5 GET /api/v1/users/reset-password/:token Opens the reset password form
6 PUT /api/v1/users/reset-password Resets the password
7 POST /api/v1/users/login Login the user
8 PUT /api/v1/users/update Update the user
Games
9 GET /api/v1/games Get all games
10 POST /api/v1/games/create Create a new game
11 PUT /api/v1/games/update Update a game
Credits
12 GET /api/v1/credits Get logged-in user credits
13 POST /api/v1/credits/store Get available credit-bundles for purchase
14 GET /api/v1/credit/history Get user transactions
Tournaments
15 GET /api/v1/tournament Get tournaments
16 POST /api/v1/tournament/create Create tournament

GET - /api/v1/users

Task: Gets all users

Input:

Header:

  • token

Optional Params:

  • email
  • id
  • created-at-from
  • created-at-to
  • updated-at-from
  • updated-at-to
  • last-active-at-from
  • last-active-at-to
  • role
  • status

Action: Gets and responds with an array of all users, without passwords that match the optional query params, if any

Example: /users?email=test@example.com&id=123456

Errors: (400) If any param other than the ones provided are used

Top