POST api/Customer

Request Information

URI Parameters

None.

Body Parameters

CustomerModel
NameDescriptionTypeAdditional information
CompanyId

integer

None.

Id

string

None.

Name

string

None.

EmailId

string

None.

MobileNo

string

None.

Address

string

None.

Password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": 1,
  "Id": "sample string 2",
  "Name": "sample string 3",
  "EmailId": "sample string 4",
  "MobileNo": "sample string 5",
  "Address": "sample string 6",
  "Password": "sample string 7"
}

application/xml, text/xml

Sample:
<CustomerController.CustomerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MG_API.Controllers">
  <Address>sample string 6</Address>
  <CompanyId>1</CompanyId>
  <EmailId>sample string 4</EmailId>
  <Id>sample string 2</Id>
  <MobileNo>sample string 5</MobileNo>
  <Name>sample string 3</Name>
  <Password>sample string 7</Password>
</CustomerController.CustomerModel>

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

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/" />