POST Advertisements/AddLocations

Request Information

URI Parameters

None.

Body Parameters

LocationsRequest
NameDescriptionTypeAdditional information
adv_id

integer

None.

address

string

None.

city

string

None.

district

string

None.

latitude

decimal number

None.

longitude

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "adv_id": 1,
  "address": "sample string 2",
  "city": "sample string 3",
  "district": "sample string 4",
  "latitude": 5.1,
  "longitude": 6.1
}

application/xml, text/xml

Sample:
<LocationsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject.Controllers">
  <address>sample string 2</address>
  <adv_id>1</adv_id>
  <city>sample string 3</city>
  <district>sample string 4</district>
  <latitude>5.1</latitude>
  <longitude>6.1</longitude>
</LocationsRequest>

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

Response Information

Resource Description

LocationsResponse
NameDescriptionTypeAdditional information
success

boolean

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<LocationsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject.Controllers">
  <message>sample string 2</message>
  <success>true</success>
</LocationsResponse>