POST api/ShippingAddress

Request Information

URI Parameters

None.

Body Parameters

ShippingAddressModels
NameDescriptionTypeAdditional information
SA_Id

integer

None.

SA_R_Id_FK

integer

None.

SA_Name

string

Required

Max length: 50

SA_MobileNumber

integer

Required

SA_Email

string

Required

Max length: 50

SA_Address

string

Required

Max length: 140

SA_Pincode

integer

Required

SA_Landmark

string

Max length: 50

Request Formats

application/json, text/json

Sample:
{
  "SA_Id": 1,
  "SA_R_Id_FK": 2,
  "SA_Name": "sample string 3",
  "SA_MobileNumber": 4,
  "SA_Email": "sample string 5",
  "SA_Address": "sample string 6",
  "SA_Pincode": 7,
  "SA_Landmark": "sample string 8"
}

application/xml, text/xml

Sample:
<ShippingAddressModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <SA_Address>sample string 6</SA_Address>
  <SA_Email>sample string 5</SA_Email>
  <SA_Id>1</SA_Id>
  <SA_Landmark>sample string 8</SA_Landmark>
  <SA_MobileNumber>4</SA_MobileNumber>
  <SA_Name>sample string 3</SA_Name>
  <SA_Pincode>7</SA_Pincode>
  <SA_R_Id_FK>2</SA_R_Id_FK>
</ShippingAddressModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.