POST Photo/GetRentPhotos

Request Information

URI Parameters

None.

Body Parameters

GetCarRentPhotosRequest
NameDescriptionTypeAdditional information
adv_id

integer

None.

photo_from

integer

None.

rent_type

integer

None.

rent_id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "adv_id": 1,
  "photo_from": 2,
  "rent_type": 3,
  "rent_id": 4
}

application/xml, text/xml

Sample:
<GetCarRentPhotosRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject.Controllers">
  <adv_id>1</adv_id>
  <photo_from>2</photo_from>
  <rent_id>4</rent_id>
  <rent_type>3</rent_type>
</GetCarRentPhotosRequest>

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

Response Information

Resource Description

GetRentPhotosResponse
NameDescriptionTypeAdditional information
success

boolean

None.

message

string

None.

cars

Collection of CarRentPhoto

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2",
  "cars": [
    {
      "ID": 1,
      "rent_id": 1,
      "adv_id": 1,
      "photo_from": 1,
      "photo_path": "sample string 2",
      "photo_type": 1,
      "rent_type": 1,
      "resim_id": "sample string 3",
      "fotograf_adi": "sample string 4"
    },
    {
      "ID": 1,
      "rent_id": 1,
      "adv_id": 1,
      "photo_from": 1,
      "photo_path": "sample string 2",
      "photo_type": 1,
      "rent_type": 1,
      "resim_id": "sample string 3",
      "fotograf_adi": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<GetRentPhotosResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject.Controllers">
  <cars xmlns:d2p1="http://schemas.datacontract.org/2004/07/RentekerAPIProject">
    <d2p1:CarRentPhoto>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:adv_id>1</d2p1:adv_id>
      <d2p1:fotograf_adi>sample string 4</d2p1:fotograf_adi>
      <d2p1:photo_from>1</d2p1:photo_from>
      <d2p1:photo_path>sample string 2</d2p1:photo_path>
      <d2p1:photo_type>1</d2p1:photo_type>
      <d2p1:rent_id>1</d2p1:rent_id>
      <d2p1:rent_type>1</d2p1:rent_type>
      <d2p1:resim_id>sample string 3</d2p1:resim_id>
    </d2p1:CarRentPhoto>
    <d2p1:CarRentPhoto>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:adv_id>1</d2p1:adv_id>
      <d2p1:fotograf_adi>sample string 4</d2p1:fotograf_adi>
      <d2p1:photo_from>1</d2p1:photo_from>
      <d2p1:photo_path>sample string 2</d2p1:photo_path>
      <d2p1:photo_type>1</d2p1:photo_type>
      <d2p1:rent_id>1</d2p1:rent_id>
      <d2p1:rent_type>1</d2p1:rent_type>
      <d2p1:resim_id>sample string 3</d2p1:resim_id>
    </d2p1:CarRentPhoto>
  </cars>
  <message>sample string 2</message>
  <success>true</success>
</GetRentPhotosResponse>