Users
Get All Users
Gets the information of all of the users associated with the application.
Permissions
User must be logged in. User requesting information must be an admin.
Success Response
Get Logged In User
Gets the information of the user that is currently logged into the MyCRT application.
Permissions
User must be logged in.
Success Response
Login
Logs a user into the system.
Permissions
User must already be registered in the system.
Body Params
Param | Description | Optional/Required |
email=[string] | Email registered to the user | Required |
password=[string] | Password associated with the user’s email | Required |
Sample Request Body
Success Response
Error Response
Logout
Logs a user out of the system.
Permissions
User must be logged in.
Success Response
Sign Up
Registers a user so that they can use MyCRT.
Permissions
None
Body Params
Param | Description | Optional/Required |
email=[string] | Email to sign up to the application with | Required |
password=[string] | Password used to log into the application. Must be between 8 and 64 chars | Required |
agreeToTerms=[boolean] | True if user agrees to terms of service. Must be true to register to the application | Required |
Sample Request Body
Success Response
Error Response
Delete User
Removes a user from the system.
Permissions
User must be logged in. User requesting the deletion must be an admin.
Query Params
Param | Description | Optional/Required |
id=[number] | id of the user to delete | Required |
Success Response
Error Response
Last updated