POST api/Account/Register

Request Information

URI Parameters

None.

Body Parameters

RegisterBindingModel
NameDescriptionTypeAdditional information
Email

string

Required

ProfileName

string

String length: inclusive between 0 and 128

PhoneNumber

string

String length: inclusive between 0 and 50

DepartmentID

integer

None.

PostingPlaceID

integer

None.

DesignationID

integer

None.

Gender

string

String length: inclusive between 0 and 50

Address

string

String length: inclusive between 0 and 1024

ProfileImage

string

None.

Password

string

Required

Data type: Password

String length: inclusive between 6 and 100

ConfirmPassword

string

Data type: Password

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "ProfileName": "sample string 2",
  "PhoneNumber": "sample string 3",
  "DepartmentID": 4,
  "PostingPlaceID": 5,
  "DesignationID": 6,
  "Gender": "sample string 7",
  "Address": "sample string 8",
  "ProfileImage": "sample string 9",
  "Password": "sample string 10",
  "ConfirmPassword": "sample string 11"
}

application/xml, text/xml

Sample:
<RegisterBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mPigeonAPI.Models">
  <Address>sample string 8</Address>
  <ConfirmPassword>sample string 11</ConfirmPassword>
  <DepartmentID>4</DepartmentID>
  <DesignationID>6</DesignationID>
  <Email>sample string 1</Email>
  <Gender>sample string 7</Gender>
  <Password>sample string 10</Password>
  <PhoneNumber>sample string 3</PhoneNumber>
  <PostingPlaceID>5</PostingPlaceID>
  <ProfileImage>sample string 9</ProfileImage>
  <ProfileName>sample string 2</ProfileName>
</RegisterBindingModel>

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 'RegisterBindingModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.