API:POST /user

From SoFurry
Revision as of 12:53, 25 April 2016 by Tetsudra (talk | contribs) (Created page with "= Resource URL = This method will register new users. If a user is successfully registered, an activation email will be sent containing the activation code. https://api.sof...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Resource URL

This method will register new users. If a user is successfully registered, an activation email will be sent containing the activation code.

https://api.sofurrybeta.com/user

Request

POST /user
{
  "name": "bob", # Required, Unique, Alphanumeric Only
  "email": "bob@example.org", # Required, Valid Email, Unique
  "password": "hunter2" # Required, Min 6 characters
}

Response: Success

HTTP 200
{
  "result": true,
  "token": "Registration complete! Please check your inbox for your activation link"
}

If the result is TRUE, then the activation was a success. The corresponding user will now be able to log in with their username and password.