POST Account/register

Request Information

URI Parameters

None.

Body Parameters

RegisterUserModel
NameDescriptionTypeAdditional information
first_name

string

None.

last_name

string

None.

full_name

string

None.

TelePhone

string

None.

country

integer

None.

email_address

string

None.

Password

string

Matching regular expression pattern: ^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$

SignUpFrom

string

None.

SourceId

string

None.

Gender

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "first_name": "sample string 1",
  "last_name": "sample string 2",
  "full_name": "sample string 3",
  "TelePhone": "sample string 4",
  "country": 5,
  "email_address": "sample string 6",
  "Password": "sample string 7",
  "SignUpFrom": "sample string 8",
  "SourceId": "sample string 9",
  "Gender": 10
}

application/xml, text/xml

Sample:
<RegisterUserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdenCard.Api.Models">
  <Gender>10</Gender>
  <Password>sample string 7</Password>
  <SignUpFrom>sample string 8</SignUpFrom>
  <SourceId>sample string 9</SourceId>
  <TelePhone>sample string 4</TelePhone>
  <country>5</country>
  <email_address>sample string 6</email_address>
  <first_name>sample string 1</first_name>
  <full_name>sample string 3</full_name>
  <last_name>sample string 2</last_name>
</RegisterUserModel>

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

Response Information

Resource Description

ResponseMessage
NameDescriptionTypeAdditional information
status

integer

None.

code

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "code": 2,
  "message": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonHelper.ResponseMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdenCard.Api">
  <code>2</code>
  <message>sample string 3</message>
  <status>1</status>
</CommonHelper.ResponseMessage>