POST Account/Registration

Request Information

URI Parameters

None.

Body Parameters

SignUp
NameDescriptionTypeAdditional information
FirstName

string

Required

Matching regular expression pattern: [-a-zA-Z' ']*

String length: inclusive between 0 and 20

LastName

string

Matching regular expression pattern: [-a-zA-Z' ']*

String length: inclusive between 0 and 20

UserName

string

Required

Matching regular expression pattern: \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

Password

string

Required

PhoneNumber

string

None.

ShopName

string

Required

Currency

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "UserName": "sample string 3",
  "Password": "sample string 4",
  "PhoneNumber": "sample string 5",
  "ShopName": "sample string 6",
  "Currency": "sample string 7"
}

application/xml, text/xml

Sample:
<SignUp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AstroVed.Api.DAL">
  <Currency>sample string 7</Currency>
  <FirstName>sample string 1</FirstName>
  <LastName>sample string 2</LastName>
  <Password>sample string 4</Password>
  <PhoneNumber>sample string 5</PhoneNumber>
  <ShopName>sample string 6</ShopName>
  <UserName>sample string 3</UserName>
</SignUp>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.