POST api/Account/Register

Request Information

URI Parameters

None.

Body Parameters

RegisterViewApiModel
NameDescriptionTypeAdditional information
FirstName

string

Required

String length: inclusive between 0 and 50

LastName

string

Required

String length: inclusive between 0 and 50

Email

string

Required

String length: inclusive between 0 and 50

UserName

string

Required

String length: inclusive between 0 and 50

Password

string

Required

Data type: Password

Matching regular expression pattern: ^(?=.*\d)(?=.*[A-Z]).{0,100}$

String length: inclusive between 6 and 100

AccountTypeId

string

Required

IsRegisterationSuccessFull

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "Email": "sample string 3",
  "UserName": "sample string 4",
  "Password": "sample string 5",
  "AccountTypeId": "sample string 6",
  "IsRegisterationSuccessFull": true
}

application/xml, text/xml

Sample:
<RegisterViewApiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PS.HireRocks.WebApi.Model">
  <AccountTypeId>sample string 6</AccountTypeId>
  <Email>sample string 3</Email>
  <FirstName>sample string 1</FirstName>
  <IsRegisterationSuccessFull>true</IsRegisterationSuccessFull>
  <LastName>sample string 2</LastName>
  <Password>sample string 5</Password>
  <UserName>sample string 4</UserName>
</RegisterViewApiModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RegisterViewApiModel'.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />