POST api/Customers

Request Information

URI Parameters

None.

Body Parameters

Customer
NameDescriptionTypeAdditional information
CustomerId

integer

None.

Name

string

None.

Address

string

None.

MobileNo

string

None.

Birthdate

date

None.

EmailId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "Name": "sample string 2",
  "Address": "sample string 3",
  "MobileNo": "sample string 4",
  "Birthdate": "2019-11-18T00:43:23.4848904-08:00",
  "EmailId": "sample string 5"
}

application/xml, text/xml

Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <Address>sample string 3</Address>
  <Birthdate>2019-11-18T00:43:23.4848904-08:00</Birthdate>
  <CustomerId>1</CustomerId>
  <EmailId>sample string 5</EmailId>
  <MobileNo>sample string 4</MobileNo>
  <Name>sample string 2</Name>
</Customer>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Customer
NameDescriptionTypeAdditional information
CustomerId

integer

None.

Name

string

None.

Address

string

None.

MobileNo

string

None.

Birthdate

date

None.

EmailId

string

None.

Response Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "Name": "sample string 2",
  "Address": "sample string 3",
  "MobileNo": "sample string 4",
  "Birthdate": "2019-11-18T00:43:23.7973924-08:00",
  "EmailId": "sample string 5"
}

application/xml, text/xml

Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <Address>sample string 3</Address>
  <Birthdate>2019-11-18T00:43:23.7973924-08:00</Birthdate>
  <CustomerId>1</CustomerId>
  <EmailId>sample string 5</EmailId>
  <MobileNo>sample string 4</MobileNo>
  <Name>sample string 2</Name>
</Customer>