GET api/MyRealEstate?categoryID={categoryID}
Retrieves Real Estates based on the provided category Name.
Request Information
URI Parameters
| Name | Description | Type | Additional information | 
|---|---|---|---|
| categoryID | The ID of the category to filter the Real Estate. | integer | Required | 
Body Parameters
None.
Response Information
Resource Description
A list of Real Estate matching the provided category ID.
Collection of MyRealEstate| Name | Description | Type | Additional information | 
|---|---|---|---|
| id | Gets or sets the ID of the real estate object. | integer | None. | 
| address | Gets or sets the address of the real estate object. | string | None. | 
| longitude | Gets or sets the longitude of the real estate object. | decimal number | None. | 
| latitude | Gets or sets the latitude of the real estate object. | decimal number | None. | 
| city | Gets or sets the city of the real estate object. | string | None. | 
| state | Gets or sets the state of the real estate object. | string | None. | 
| zipCode | Gets or sets the zip code of the real estate object. | string | None. | 
| price | Gets or sets the price of the real estate object. | decimal number | None. | 
| publishedDate | Gets or sets the published date of the real estate object. | string | None. | 
| distance | Gets or sets the distance of the real estate object. | decimal number | None. | 
| daysOld | Gets or sets the age of the real estate object in days. | decimal number | None. | 
| correlation | Gets or sets the correlation value of the real estate object. | decimal number | None. | 
| county | Gets or sets the county of the real estate object. | string | None. | 
| bedrooms | Gets or sets the number of bedrooms in the real estate object. | integer | None. | 
| bathrooms | Gets or sets the number of bathrooms in the real estate object. | integer | None. | 
| propertyType | Gets or sets the type of the real estate property. | string | None. | 
| squareFootage | Gets or sets the square footage of the real estate object. | integer | None. | 
| yearBuilt | Gets or sets the year the real estate object was built. | integer | None. | 
| houseImage | Gets or sets the URL of the house image for the real estate object. | string | None. | 
| starRatings | The star review rating of the item, It's an array where each rating captured separately. | Collection of integer | None. | 
| categoryID | Gets or sets the category of the real estate object. | integer | None. | 
Response Formats
application/json, text/json
[
  {
    "id": 1,
    "address": "sample string 2",
    "longitude": 3.1,
    "latitude": 4.1,
    "city": "sample string 5",
    "state": "sample string 6",
    "zipCode": "sample string 7",
    "price": 8.0,
    "publishedDate": "sample string 9",
    "distance": 10.1,
    "daysOld": 11.1,
    "correlation": 12.1,
    "county": "sample string 13",
    "bedrooms": 14,
    "bathrooms": 15,
    "propertyType": "sample string 16",
    "squareFootage": 17,
    "yearBuilt": 18,
    "houseImage": "sample string 19",
    "starRatings": [
      1,
      2
    ],
    "categoryID": 20
  },
  {
    "id": 1,
    "address": "sample string 2",
    "longitude": 3.1,
    "latitude": 4.1,
    "city": "sample string 5",
    "state": "sample string 6",
    "zipCode": "sample string 7",
    "price": 8.0,
    "publishedDate": "sample string 9",
    "distance": 10.1,
    "daysOld": 11.1,
    "correlation": 12.1,
    "county": "sample string 13",
    "bedrooms": 14,
    "bathrooms": 15,
    "propertyType": "sample string 16",
    "squareFootage": 17,
    "yearBuilt": 18,
    "houseImage": "sample string 19",
    "starRatings": [
      1,
      2
    ],
    "categoryID": 20
  }
]
        application/xml, text/xml
<ArrayOfMyRealEstate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
  <MyRealEstate>
    <address>sample string 2</address>
    <bathrooms>15</bathrooms>
    <bedrooms>14</bedrooms>
    <categoryID>20</categoryID>
    <city>sample string 5</city>
    <correlation>12.1</correlation>
    <county>sample string 13</county>
    <daysOld>11.1</daysOld>
    <distance>10.1</distance>
    <houseImage>sample string 19</houseImage>
    <id>1</id>
    <latitude>4.1</latitude>
    <longitude>3.1</longitude>
    <price>8</price>
    <propertyType>sample string 16</propertyType>
    <publishedDate>sample string 9</publishedDate>
    <squareFootage>17</squareFootage>
    <starRatings xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </starRatings>
    <state>sample string 6</state>
    <yearBuilt>18</yearBuilt>
    <zipCode>sample string 7</zipCode>
  </MyRealEstate>
  <MyRealEstate>
    <address>sample string 2</address>
    <bathrooms>15</bathrooms>
    <bedrooms>14</bedrooms>
    <categoryID>20</categoryID>
    <city>sample string 5</city>
    <correlation>12.1</correlation>
    <county>sample string 13</county>
    <daysOld>11.1</daysOld>
    <distance>10.1</distance>
    <houseImage>sample string 19</houseImage>
    <id>1</id>
    <latitude>4.1</latitude>
    <longitude>3.1</longitude>
    <price>8</price>
    <propertyType>sample string 16</propertyType>
    <publishedDate>sample string 9</publishedDate>
    <squareFootage>17</squareFootage>
    <starRatings xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </starRatings>
    <state>sample string 6</state>
    <yearBuilt>18</yearBuilt>
    <zipCode>sample string 7</zipCode>
  </MyRealEstate>
</ArrayOfMyRealEstate>