-
Notifications
You must be signed in to change notification settings - Fork 0
API
Evan Kennedy edited this page Apr 3, 2016
·
1 revision
The following will be returned on every successful call. Additional data will usually be inserted into the result and is listed below each API call.
{
"success": true
}
The following will be returned on every failed call. The HTTP status code should be in the 4xx range. If an error code is in the 5xx range, it is a server error and will most likely be "An unexpected error occurred".
{
"error": String
}
The error object can be extended by each call to add additional information to the client. All possible error codes are listed below each function with any additional data parameters listed. If no additional data parameters are shown, it only shows a string error message.
Attempt to register a user.
{
"username": String,
"password": String
}
{
"success": true
}