forked from yql/yql-tables
/
mediawikiapi.recentchanges.xml
41 lines (41 loc) · 1.54 KB
/
mediawikiapi.recentchanges.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
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Mike Dillon</author>
<sampleQuery>select * from {table}</sampleQuery>
<!--<documentationURL></documentationURL>-->
</meta>
<bindings>
<select itemPath="api.query.recentchanges.rc" produces="XML">
<urls>
<url>http://{site}/w/api.php?action=query&format=xml&list=recentchanges&rcprop=title|timestamp|ids|comment|flags|sizes|redirect|user&rcnamespace={-listjoin|%7C|ns}</url>
</urls>
<!--
<paging model="offset">
<start default="0" id="dummy"/>
<pagesize max="500" id="rclimit"/>
<total default="10"/>
</paging>
-->
<inputs>
<key id="site" type="xs:string" paramType="path" required="true" default="en.wikipedia.org"/>
<key id="ns" type="xs:integer" paramType="path" batchable="true" required="true"/>
</inputs>
</select>
<select itemPath="api.query.recentchanges.rc" produces="XML">
<urls>
<url>http://{site}/w/api.php?action=query&format=xml&list=recentchanges&rcprop=title|timestamp|ids|comment|flags|sizes|redirect|user</url>
</urls>
<!--
<paging model="offset">
<start default="0" id="dummy"/>
<pagesize max="500" id="rclimit"/>
<total default="10"/>
</paging>
-->
<inputs>
<key id="site" type="xs:string" paramType="path" required="true" default="en.wikipedia.org"/>
</inputs>
</select>
</bindings>
</table>