Skip to content

Commit

Permalink
split one file into many, need one <table> per file
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Pullara <spullara@yahoo.com>
  • Loading branch information
bkudria authored and spullara committed Feb 25, 2009
1 parent 3905f99 commit 65195ce
Show file tree
Hide file tree
Showing 7 changed files with 185 additions and 76 deletions.
30 changes: 30 additions & 0 deletions nyt/nyt.people.activities.xml
@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>New York Times</author>
<description>NYT TimesPeople social network - activities</description>
<documentationURL>http://developer.nytimes.com/docs/timespeople_api/</documentationURL>
</meta>
<bindings>
<select produces="JSON" itemPath="results">
<urls>
<url>http://api.nytimes.com/svc/timespeople/api/{version}/user/{user-id}/activity.js?api-key={apikey}</url>
</urls>
<inputs>
<key id="user-id" type="xs:string" paramType="path" required="true"/>
<key id="version" type="xs:string" paramType="path" default="v1"/>
<key id="apikey" private="true" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>
<select produces="XML" itemPath="result_set.results">
<urls>
<url>http://api.nytimes.com/svc/timespeople/api/{version}/user/{user-id}/activity.xml?api-key={apikey}</url>
</urls>
<inputs>
<key id="user-id" type="xs:string" paramType="path" required="true"/>
<key id="version" type="xs:string" paramType="path" default="v1"/>
<key id="apikey" private="true" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>
</bindings>
</table>
31 changes: 31 additions & 0 deletions nyt/nyt.people.followers.xml
@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>New York Times</author>
<description>NYT TimesPeople social network - followers</description>
<documentationURL>http://developer.nytimes.com/docs/timespeople_api/</documentationURL>
</meta>
<bindings>
<select produces="JSON" itemPath="results">
<urls>
<url>http://api.nytimes.com/svc/timespeople/api/{version}/user/{user-id}/followers.js?api-key={apikey}</url>
</urls>
<inputs>
<key id="user-id" type="xs:string" paramType="path" required="true"/>
<key id="version" type="xs:string" paramType="path" default="v1"/>
<key id="apikey" private="true" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>
<select produces="XML" itemPath="result_set.results">
<urls>
<url>http://api.nytimes.com/svc/timespeople/api/{version}/user/{user-id}/followers.xml?api-key={apikey}</url>
</urls>
<inputs>
<key id="user-id" type="xs:string" paramType="path" required="true"/>
<key id="version" type="xs:string" paramType="path" default="v1"/>
<key id="apikey" private="true" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>
</bindings>
</table>

32 changes: 32 additions & 0 deletions nyt/nyt.people.following.xml
@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>New York Times</author>
<description>NYT TimesPeople social network - following</description>
<documentationURL>http://developer.nytimes.com/docs/timespeople_api/</documentationURL>
</meta>
<bindings>
<select produces="JSON" itemPath="results">
<urls>
<url>http://api.nytimes.com/svc/timespeople/api/{version}/user/{user-id}/following.js?api-key={apikey}</url>
</urls>
<inputs>
<key id="user-id" type="xs:string" paramType="path" required="true"/>
<key id="version" type="xs:string" paramType="path" default="v1"/>
<key id="apikey" private="true" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>
<select produces="XML" itemPath="result_set.results">
<urls>
<url>http://api.nytimes.com/svc/timespeople/api/{version}/user/{user-id}/following.xml?api-key={apikey}</url>
</urls>
<inputs>
<key id="user-id" type="xs:string" paramType="path" required="true"/>
<key id="version" type="xs:string" paramType="path" default="v1"/>
<key id="apikey" private="true" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>

</bindings>
</table>

31 changes: 31 additions & 0 deletions nyt/nyt.people.newsfeed.xml
@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>New York Times</author>
<description>NYT TimesPeople social network - newsfeed</description>
<documentationURL>http://developer.nytimes.com/docs/timespeople_api/</documentationURL>
</meta>
<bindings>

<select produces="JSON" itemPath="results">
<urls>
<url>http://api.nytimes.com/svc/timespeople/api/{version}/user/{user-id}/newsfeed.js?api-key={apikey}</url>
</urls>
<inputs>
<key id="user-id" type="xs:string" paramType="path" required="true"/>
<key id="version" type="xs:string" paramType="path" default="v1"/>
<key id="apikey" private="true" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>
<select produces="XML" itemPath="result_set.results">
<urls>
<url>http://api.nytimes.com/svc/timespeople/api/{version}/user/{user-id}/newsfeed.xml?api-key={apikey}</url>
</urls>
<inputs>
<key id="user-id" type="xs:string" paramType="path" required="true"/>
<key id="version" type="xs:string" paramType="path" default="v1"/>
<key id="apikey" private="true" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>
</bindings>
</table>
31 changes: 31 additions & 0 deletions nyt/nyt.people.profiles.xml
@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>New York Times</author>
<description>NYT TimesPeople Social Network - Profiles</description>
<documentationURL>http://developer.nytimes.com/docs/timespeople_api/</documentationURL>
</meta>
<bindings>
<select produces="JSON" itemPath="results">
<urls>
<url>http://api.nytimes.com/svc/timespeople/api/{version}/user/{user-id}/profile.js?api-key={apikey}</url>
</urls>
<inputs>
<key id="user-id" type="xs:string" paramType="path" required="true"/>
<key id="version" type="xs:string" paramType="path" default="v1"/>
<key id="apikey" private="true" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>

<select produces="XML" itemPath="result_set.results">
<urls>
<url>http://api.nytimes.com/svc/timespeople/api/{version}/user/{user-id}/profile.xml?api-key={apikey}</url>
</urls>
<inputs>
<key id="user-id" type="xs:string" paramType="path" required="true"/>
<key id="version" type="xs:string" paramType="path" default="v1"/>
<key id="apikey" private="true" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>
</bindings>
</table>
30 changes: 30 additions & 0 deletions nyt/nyt.people.users.xml
@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>New York Times</author>
<description>NYT TimesPeople social network - users</description>
<documentationURL>http://developer.nytimes.com/docs/timespeople_api/</documentationURL>
</meta>
<bindings>
<select produces="JSON" itemPath="results">
<urls>
<url>http://api.nytimes.com/svc/timespeople/api/{version}/user/{email-hash}/id.js?api-key={apikey}</url>
</urls>
<inputs>
<key id="email-hash" type="xs:string" paramType="path" required="true"/>
<key id="version" type="xs:string" paramType="path" default="v1"/>
<key id="apikey" private="true" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>
<select produces="XML" itemPath="result_set.results">
<urls>
<url>http://api.nytimes.com/svc/timespeople/api/{version}/user/{email-hash}/id.js?api-key={apikey}</url>
</urls>
<inputs>
<key id="email-hash" type="xs:string" paramType="path" required="true"/>
<key id="version" type="xs:string" paramType="path" default="v1"/>
<key id="apikey" private="true" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>
</bindings>
</table>
76 changes: 0 additions & 76 deletions nyt/nyt.timespeople.xml

This file was deleted.

0 comments on commit 65195ce

Please sign in to comment.