Skip to content

Commit

Permalink
Shops table
Browse files Browse the repository at this point in the history
  • Loading branch information
rlerdorf committed Mar 25, 2009
1 parent dbc328d commit 50a2945
Showing 1 changed file with 110 additions and 0 deletions.
110 changes: 110 additions & 0 deletions etsy/etsy.shops.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Rasmus Lerdorf</author>
<documentationURL>http://developer.etsy.com/docs</documentationURL>
<description>Etsy.com Shops API</description>
<sampleQuery>select * from etsy.shops where user_id='testuser' and api_key=123456789</sampleQuery>
</meta>
<bindings>

<select itemPath="json.results" produces="JSON">
<urls>
<url env="all">http://beta-api.etsy.com/v1/shops/{user_id}/favorers</url>
</urls>
<paging model="offset">
<start id="offset" default="0" />
<pagesize id="limit" max="50" />
<total default="10" />
</paging>
<inputs>
<key id="user_id" type="xs:string" paramType="path" required="true" />
<key id="favorers" type="xs:boolean" paramType="header" required="true" />
<key id="api_key" type="xs:string" paramType="query" required="true" />
<key id="detail_level" type="xs:string" paramType="query" />
</inputs>
</select>

<select itemPath="json.results" produces="JSON">
<urls>
<url env="all">http://beta-api.etsy.com/v1/shops/{user_id}/listings</url>
</urls>
<paging model="offset">
<start id="offset" default="0" />
<pagesize id="limit" max="50" />
<total default="10" />
</paging>
<inputs>
<key id="user_id" type="xs:string" paramType="path" required="true" />
<key id="listings" type="xs:boolean" paramType="header" required="true" />
<key id="api_key" type="xs:string" paramType="query" required="true" />
<key id="detail_level" type="xs:string" paramType="query" />
<key id="sort_order" type="xs:string" paramType="query" />
<key id="sort_on" type="xs:string" paramType="query" />
<key id="section_id" type="xs:number" paramType="query" />
</inputs>
</select>

<select itemPath="json.results" produces="JSON">
<urls>
<url env="all">http://beta-api.etsy.com/v1/shops/{user_id}/listings/featured</url>
</urls>
<paging model="offset">
<start id="offset" default="0" />
<pagesize id="limit" max="50" />
<total default="10" />
</paging>
<inputs>
<key id="user_id" type="xs:string" paramType="path" required="true" />
<key id="featured" type="xs:boolean" paramType="header" required="true" />
<key id="api_key" type="xs:string" paramType="query" required="true" />
<key id="detail_level" type="xs:string" paramType="query" />
</inputs>
</select>

<select itemPath="json.results" produces="JSON">
<urls>
<url env="all">http://beta-api.etsy.com/v1/shops/featured</url>
</urls>
<paging model="offset">
<start id="offset" default="0" />
<pagesize id="limit" max="50" />
<total default="10" />
</paging>
<inputs>
<key id="featured" type="xs:boolean" paramType="header" required="true" />
<key id="api_key" type="xs:string" paramType="query" required="true" />
<key id="detail_level" type="xs:string" paramType="query" />
</inputs>
</select>

<select itemPath="json.results" produces="JSON">
<urls>
<url env="all">http://beta-api.etsy.com/v1/shops/{user_id}</url>
</urls>
<inputs>
<key id="user_id" type="xs:string" paramType="path" required="true" />
<key id="api_key" type="xs:string" paramType="query" required="true" />
<key id="detail_level" type="xs:string" paramType="query" />
</inputs>
</select>

<select itemPath="json.results" produces="JSON">
<urls>
<url env="all">http://beta-api.etsy.com/v1/shops/keywords/{search_name}</url>
</urls>
<paging model="offset">
<start id="offset" default="0" />
<pagesize id="limit" max="50" />
<total default="10" />
</paging>
<inputs>
<key id="api_key" type="xs:string" paramType="query" required="true" />
<key id="search_name" type="xs:string" paramType="path" required="true" />
<key id="detail_level" type="xs:string" paramType="query" />
<key id="sort_order" type="xs:string" paramType="query" />
</inputs>
</select>

</bindings>
</table>

0 comments on commit 50a2945

Please sign in to comment.