Skip to content

API Documentation

Evan Langlais edited this page Feb 13, 2019 · 10 revisions

Authorization

Authorize User - GET /auth

BODY:

  • email
  • password

RETURNS:

  • message - "Authorized" if successful
  • token - The JWT token that will be used as bearer token for all other functions

Admin

Register New User - POST /admin/register

AUTHORIZATION: bearer + admin role (not implemented yet)

BODY:

  • email
  • password
  • organization_id
  • first_name
  • last_name

RETURNS:

  • message - "Created User" if successful
  • user_id - Newly created user's id

Clone this wiki locally