forked from yql/yql-tables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrooklyn.collection.getImages.xml
36 lines (36 loc) · 2.04 KB
/
brooklyn.collection.getImages.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
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="false">
<meta>
<author>Daniel Pett</author>
<description>Search Brooklyn Museum's collections database for images</description>
<documentationURL>http://www.brooklynmuseum.org/opencollection/api/docs/request/collection.getImages</documentationURL>
<sampleQuery description="Retrieve an object by type and id number">select * from {table} where item_type="object" and item_id="4174" and api_key='{key}';</sampleQuery>
</meta>
<bindings>
<select itemPath="response.images" produces="XML">
<urls>
<url>http://www.brooklynmuseum.org/opencollection/api/?method=collection.getImages</url>
</urls>
<paging model="offset">
<start id="start_index" default="0"/>
<pagesize id="results_limit" max="20"/>
<total default="20"/>
</paging>
<inputs>
<key id="item_type" type="xs:string" paramType="query" required="true" />
<key id="item_id" type="xs:string" paramType="query" required="true" />
<key id="start_index" type="xs:string" paramType="query" required="false" />
<key id="results_limit" type="xs:string" paramType="query" required="false" />
<key id="include_image_caption" type="xs:string" paramType="query" required="false" />
<key id="include_item_fields" type="xs:string" paramType="query" required="false" />
<key id="thumb_shape" type="xs:string" paramType="query" required="false" />
<key id="max_thumb_size" type="xs:string" paramType="query" required="false" />
<key id="max_image_size" type="xs:string" paramType="query" required="false" />
<key id="include_html_style_block" type="xs:string" paramType="query" required="false" />
<key id="format" type="xs:string" paramType='query' const="true" default="xml"/>
<key id="version" type="xs:string" paramType="query" const="true" default="1" />
<key id="api_key" type="xs:string" paramType="query" required="true" private="true" />
</inputs>
</select>
</bindings>
</table>