<?xml version="1.0" encoding="ISO-8859-1" ?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, | |
software distributed under the License is distributed on an | |
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
KIND, either express or implied. See the License for the | |
specific language governing permissions and limitations | |
under the License. | |
--> | |
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://wadl.dev.java.net/2009/02 wadl.xsd" | |
xmlns:tns="urn:yahoo:yn" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:yn="urn:yahoo:yn" | |
xmlns:ya="urn:yahoo:api" | |
xmlns="http://wadl.dev.java.net/2009/02"> | |
<grammars> | |
<include | |
href="NewsSearchResponse.xsd"/> | |
<include | |
href="Error.xsd"/> | |
</grammars> | |
<resources base="http://api.search.yahoo.com/NewsSearchService/V1/"> | |
<resource path="newsSearch"> | |
<method name="GET" id="search"> | |
<request> | |
<param name="appid" type="xsd:string" | |
style="query" required="true"/> | |
<param name="query" type="xsd:string" | |
style="query" 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 mediaType="application/xml" | |
element="yn:ResultSet"/> | |
</response> | |
<response status="400"> | |
<representation mediaType="application/xml" | |
element="ya:Error"/> | |
</response> | |
</method> | |
</resource> | |
</resources> | |
</application> |