POST api/UserApi/AddAddress
Request Information
URI Parameters
None.
Body Parameters
Address| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CustomerId | integer |
None. |
|
| CustomerAddress | string |
None. |
|
| CustomerAddress_ar | string |
None. |
|
| Latitude | decimal number |
None. |
|
| Lognitude | decimal number |
None. |
|
| AdditionAddressDetails | string |
None. |
|
| AdditionAddressDetails_ar | string |
None. |
|
| Name | string |
None. |
|
| Name_ar | string |
None. |
|
| PhoneNumber | string |
None. |
|
| AddressType | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"CustomerId": 2,
"CustomerAddress": "sample string 3",
"CustomerAddress_ar": "sample string 4",
"Latitude": 5.1,
"Lognitude": 6.1,
"AdditionAddressDetails": "sample string 7",
"AdditionAddressDetails_ar": "sample string 8",
"Name": "sample string 9",
"Name_ar": "sample string 10",
"PhoneNumber": "sample string 11",
"AddressType": "sample string 12"
}
application/xml, text/xml
Sample:
<Address xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CodeHive_Food_System.Models"> <AdditionAddressDetails>sample string 7</AdditionAddressDetails> <AdditionAddressDetails_ar>sample string 8</AdditionAddressDetails_ar> <AddressType>sample string 12</AddressType> <CustomerAddress>sample string 3</CustomerAddress> <CustomerAddress_ar>sample string 4</CustomerAddress_ar> <CustomerId>2</CustomerId> <Id>1</Id> <Latitude>5.1</Latitude> <Lognitude>6.1</Lognitude> <Name>sample string 9</Name> <Name_ar>sample string 10</Name_ar> <PhoneNumber>sample string 11</PhoneNumber> </Address>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.