POST api/PetOffer/GetOffers?page={page}&count={count}&sortBy={sortBy}&sortDir={sortDir}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
page

integer

Default value is 0

count

integer

Default value is 10

sortBy

string

Default value is

sortDir

string

Default value is

Body Parameters

GetOffersInput
NameDescriptionTypeAdditional information
petOfferTitle

string

None.

petCategoryID

integer

None.

andAttributeList

Collection of Pair of integer [key] and string [value]

None.

orAttributeList

Collection of Pair of integer [key] and string [value]

None.

Request Formats

application/json, text/json

Sample:
{
  "petOfferTitle": "sample string 1",
  "petCategoryID": 1,
  "andAttributeList": [
    {
      "Key": 1,
      "Value": "sample string 2"
    },
    {
      "Key": 1,
      "Value": "sample string 2"
    }
  ],
  "orAttributeList": [
    {
      "Key": 1,
      "Value": "sample string 2"
    },
    {
      "Key": 1,
      "Value": "sample string 2"
    }
  ]
}

text/html

Sample:
{"petOfferTitle":"sample string 1","petCategoryID":1,"andAttributeList":[{"Key":1,"Value":"sample string 2"},{"Key":1,"Value":"sample string 2"}],"orAttributeList":[{"Key":1,"Value":"sample string 2"},{"Key":1,"Value":"sample string 2"}]}

application/xml, text/xml

Sample:
<PetOfferController.GetOffersInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EJungleAPI.Controllers">
  <andAttributeList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <d2p1:KeyValuePairOfintstring>
      <d2p1:key>1</d2p1:key>
      <d2p1:value>sample string 2</d2p1:value>
    </d2p1:KeyValuePairOfintstring>
    <d2p1:KeyValuePairOfintstring>
      <d2p1:key>1</d2p1:key>
      <d2p1:value>sample string 2</d2p1:value>
    </d2p1:KeyValuePairOfintstring>
  </andAttributeList>
  <orAttributeList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <d2p1:KeyValuePairOfintstring>
      <d2p1:key>1</d2p1:key>
      <d2p1:value>sample string 2</d2p1:value>
    </d2p1:KeyValuePairOfintstring>
    <d2p1:KeyValuePairOfintstring>
      <d2p1:key>1</d2p1:key>
      <d2p1:value>sample string 2</d2p1:value>
    </d2p1:KeyValuePairOfintstring>
  </orAttributeList>
  <petCategoryID>1</petCategoryID>
  <petOfferTitle>sample string 1</petOfferTitle>
</PetOfferController.GetOffersInput>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.