Skip to content

Commit

Permalink
Adding the guardian tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Gordineer committed Mar 10, 2009
1 parent 6e361cb commit 2c063bd
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
19 changes: 19 additions & 0 deletions guardian/guardian.content.item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Josh Gordineer</author>
<description>Guardian Item API</description>
<sampleQuery>select * from {table} where item_id='334767774'</sampleQuery>
</meta>
<bindings>
<select itemPath="content" produces="XML">
<urls>
<url>http://api.guardianapis.com/content/item/{item_id}</url>
</urls>
<inputs>
<key id="item_id" type="xs:string" paramType="path" required="true" />
<key id="api_key" type="xs:string" paramType="query" required="true" />
</inputs>
</select>
</bindings>
</table>
28 changes: 28 additions & 0 deletions guardian/guardian.content.search.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Josh Gordineer</author>
<description>Guardian Content Search API</description>
<sampleQuery>select * from {table} where q='environment'</sampleQuery>
</meta>
<bindings>
<select itemPath="search.results.content" produces="XML">
<urls>
<url>http://api.guardianapis.com/content/search</url>
</urls>
<paging model="offset">
<start id="start-index" default="0" />
<pagesize id="count" max="500" />
<total default="10" />
</paging>
<inputs>
<key id="q" type="xs:string" paramType="query" />
<key id="after" type="xs:string" paramType="query" />
<key id="before" type="xs:string" paramType="query" />
<key id="content-type" type="xs:string" paramType="query" />
<key id="filter" type="xs:string" paramType="query" />
<key id="api_key" type="xs:string" paramType="query" required="true" />
</inputs>
</select>
</bindings>
</table>
24 changes: 24 additions & 0 deletions guardian/guardian.content.tags.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Josh Gordineer</author>
<description>Guardian Tags API</description>
<sampleQuery>select * from {table} where q='environment'</sampleQuery>
</meta>
<bindings>
<select itemPath="tags.tag" produces="XML">
<urls>
<url>http://api.guardianapis.com/content/tags</url>
</urls>
<paging model="offset">
<start id="start-index" default="0" />
<pagesize id="count" max="500" />
<total default="10" />
</paging>
<inputs>
<key id="q" type="xs:string" paramType="query" required="true" />
<key id="api_key" type="xs:string" paramType="query" required="true" />
</inputs>
</select>
</bindings>
</table>

0 comments on commit 2c063bd

Please sign in to comment.