POST api/Customer/AddCustomer

Request Information

URI Parameters

None.

Body Parameters

Customer
NameDescriptionTypeAdditional information
CustomerId

integer

None.

Name

string

None.

DOB

string

None.

Address

string

None.

Location

string

None.

City_Id

integer

None.

City

string

None.

Area_Id

integer

None.

Area

string

None.

Postal_Code

string

None.

Email

string

None.

Mobile

string

None.

CustomerType_Id

integer

None.

Description

string

None.

SessionId

string

None.

UserId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "Name": "sample string 2",
  "DOB": "sample string 3",
  "Address": "sample string 4",
  "Location": "sample string 5",
  "City_Id": 6,
  "City": "sample string 7",
  "Area_Id": 8,
  "Area": "sample string 9",
  "Postal_Code": "sample string 10",
  "Email": "sample string 11",
  "Mobile": "sample string 12",
  "CustomerType_Id": 13,
  "Description": "sample string 14",
  "SessionId": "sample string 15",
  "UserId": 16
}

application/octet-stream

Sample:
{"$id":"1","CustomerId":1,"Name":"sample string 2","DOB":"sample string 3","Address":"sample string 4","Location":"sample string 5","City_Id":6,"City":"sample string 7","Area_Id":8,"Area":"sample string 9","Postal_Code":"sample string 10","Email":"sample string 11","Mobile":"sample string 12","CustomerType_Id":13,"Description":"sample string 14","SessionId":"sample string 15","UserId":16}

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/octet-stream

Sample:

Sample not available.