forked from yql/yql-tables
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nestoria.search.xml
42 lines (42 loc) · 2.04 KB
/
nestoria.search.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Francisco Jordano</author>
<documentationURL>http://www.nestoria.co.uk/help/api-tech</documentationURL>
<sampleQuery>select * from {table} where place_name="Chelsea"</sampleQuery>
<description>Search the Nestoria database for listings. By default it search for listings to buy</description>
</meta>
<bindings>
<select produces="XML" itemPath="opt.response.listings">
<urls>
<url>http://api.nestoria.{country}/api?action=search_listings&encoding=xml</url>
</urls>
<paging model="page">
<start id="page" default="0" />
<pagesize id="number_of_results" max="20"/>
<total default="20" />
</paging>
<inputs>
<key id="country" type="xs:string" paramType="path" required="true" default="co.uk"/>
<key id="place_name" type="xs:string" paramType="query" required="true"/>
<key id="south_west" type="xs:string" paramType="query"/>
<key id="north_east" type="xs:string" paramType="query"/>
<key id="radius" type="xs:string" paramType="query"/>
<key id="guid" type="xs:string" paramType="query" batchable="true" maxBatchItems="5"/>
<key id="listing_type" type="xs:string" paramType="query"/>
<key id="property_type" type="xs:string" paramType="query"/>
<key id="price_max" type="xs:string" paramType="query"/>
<key id="price_min" type="xs:string" paramType="query"/>
<key id="bedroom_max" type="xs:string" paramType="query"/>
<key id="bedroom_min" type="xs:string" paramType="query"/>
<key id="size_max" type="xs:string" paramType="query"/>
<key id="size_min" type="xs:string" paramType="query"/>
<key id="sort" type="xs:string" paramType="query"/>
<key id="has_photo" type="xs:int" paramType="query" default="1"/>
<key id="update_min" type="xs:long" paramType="query"/>
<key id="keywords" type="xs:string" paramType="query" batchable="true"/>
<key id="keywords_exclude" type="xs:string" paramType="query" batchable="true"/>
</inputs>
</select>
</bindings>
</table>