-
Notifications
You must be signed in to change notification settings - Fork 11
/
yns.wadl
57 lines (48 loc) · 1.75 KB
/
yns.wadl
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0"?>
<application
xsi:schemaLocation="http://wadl.dev.java.net/2009/02 wadl.xsd"
xmlns ="http://wadl.dev.java.net/2009/02"
xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd ="http://www.w3.org/2001/XMLSchema"
xmlns:tns ="urn:yahoo:yn"
xmlns:yn ="urn:yahoo:yn"
xmlns:ya ="urn:yahoo:api">
<grammars>
<include href="NewsSearchResponse.xsd"/>
<include href="Error.xsd"/>
</grammars>
<!-- Representations -->
<representation mediaType="application/xml" element="yn:ResultSet" id="YNS-Rep-Success"/>
<representation mediaType="application/xml" element="ya:Error" id="YNS-Rep-Failure"/>
<!-- Methods -->
<method name="GET" id="YNS-Method-GET">
<request>
<param name="appid" style="query" type="xsd:string" required="true"/>
<param name="query" style="query" type="xsd:string" required="true"/>
<param name="type" style="query" default="all">
<option value="all"/>
<option value="any"/>
<option value="phrase"/>
</param>
<param name="results" style="query" type="xsd:int" default="10"/>
<param name="start" style="query" type="xsd:int" default="1"/>
<param name="sort" style="query" default="rank">
<option value="rank"/>
<option value="date"/>
</param>
<param name="language" style="query" type="xsd:string"/>
</request>
<response status="200">
<representation href="#YNS-Rep-Success"/>
</response>
<response status="400">
<representation href="#YNS-Rep-Failure"/>
</response>
</method>
<!-- Resources -->
<resources base="http://search.yahooapis.com/NewsSearchService/V1/">
<resource path="newsSearch" id="YNS-Resource">
<method href="#YNS-Method-GET"/>
</resource>
</resources>
</application>