forked from abramhindle/CMPUT404-project-socialdistribution
-
Notifications
You must be signed in to change notification settings - Fork 1
Register
Fraser Redford edited this page Apr 15, 2021
·
8 revisions
POST: api/auth/register
This will process a request to register a new user on the server when given a username, password, display name and github. If the user has recently registered they will be required to wait until their account has been activated by a server administrator.
A JSON object requiring the following:
| Key | Required/Optional | Description |
|---|---|---|
| username | required | A username for login |
| password | required | A password for login |
| displayName | required | The name they want displayed |
| github | optional | The user's github to be linked to |
{
"username": "TommyShelby",
"password": "peakyblinders",
"displayName": "TommyShelby",
"github": "http://github.com/tommyshelby"
}
Registered Successfully!
-
201 Createdupon creation of an authenticated user and author -
400 Bad Requestif data is missing from the request