forked from yql/yql-tables
/
apigee.consoles.xml
36 lines (33 loc) · 1.45 KB
/
apigee.consoles.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">
<meta>
<author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
<description>Get information about the ready made API consoles from apigee.com</description>
<documentationURL>http://snap.apigee.com/qEPjIT</documentationURL>
<sampleQuery>SELECT * FROM {table}</sampleQuery>
<sampleQuery>SELECT wadlUrl FROM {table}</sampleQuery>
<sampleQuery>SELECT * FROM {table} WHERE console_name = 'facebook'</sampleQuery>
<sampleQuery>SELECT * FROM {table} WHERE console_name = 'facebook' OR 'facebook'</sampleQuery>
</meta>
<bindings>
<!--
this /select has to stay the 1st one, so that it takes
precedence over the 2nd /select in which the "console_name"
parameter is optional.
-->
<select itemPath="json" produces="JSON">
<urls>
<url env="all">http://api.apigee.com/v1/consoles/{console_name}.json</url>
</urls>
<inputs>
<key id="console_name" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>
<select itemPath="json.console" produces="JSON">
<urls>
<url env="all">http://api.apigee.com/v1/consoles.json</url>
</urls>
<inputs/>
</select>
</bindings>
</table>