POST api/auth/register
Creates a new user account.
Request Information
URI Parameters
None.
Body Parameters
User registration request.
RegisterRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Username |
Username (email address). |
string |
None. |
| Password |
Password. |
string |
None. |
| FullName |
Full name. |
string |
None. |
| AccountType |
Account type. |
AccountType |
None. |
Request Formats
application/json, text/json
Sample:
{
"Username": "sample string 1",
"Password": "sample string 2",
"FullName": "sample string 3",
"AccountType": "PayPerUse"
}
application/xml, text/xml
Sample:
<RegisterRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PuntoNeutro.WebApi.Models"> <AccountType>PayPerUse</AccountType> <FullName>sample string 3</FullName> <Password>sample string 2</Password> <Username>sample string 1</Username> </RegisterRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Created user details and authentication token.
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.