Find file
Fetching contributors…
Cannot retrieve contributors at this time
81 lines (65 sloc) 3.28 KB
The contents of this file are subject to the terms
of the Common Development and Distribution License
(the "License"). You may not use this file except
in compliance with the License.
You can obtain a copy of the license at
See the License for the specific language governing
permissions and limitations under the License.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<wadl:doc>A simple subset of the BBC scheduling REST service written by hand</wadl:doc>
<wadl:include href="bbc-schedule.xsd">
<wadl:doc>A XML Grammar based on some example messages as generated by the XSD from XML wizard in JDeveloper</wadl:doc>
<wadl:resources base="">
<wadl:doc>This WADL represents the REST API as descibed on the <a href="">BBC developers page</a></wadl:doc>
<wadl:resource path="{service}">
<wadl:param name="service" style="template">
<wadl:doc>The BBC service, for example radio1 or radio4</wadl:doc>
<wadl:resource path="programmes/schedules/{outlet}">
<wadl:param name="outlet" style="template">
<wadl:doc>The outlet, this might map to a country ie england, for radio1, or a medium, for radio2, for example fm</wadl:doc>
<wadl:resource path="{modifier}.xml">
<wadl:param name="modifier" style="template" type="xsd:string">
<wadl:doc>Simple time period modifier</wadl:doc>
<wadl:option value="yesterday" />
<wadl:option value="today" />
<wadl:option value="tomorrow" />
<wadl:method name="GET">
<wadl:doc>Get the schedule for yesterday/today/tommorrow depending on the modifier</wadl:doc>
<wadl:response status="200">
<wadl:representation mediaType="application/xml" element="schedule" />
<wadl:resource path="{year}/{month}/{day}.xml">
<wadl:param name="year" style="template" type="xs:int">
<wadl:doc>The year to filter by</wadl:doc>
<wadl:param name="month" style="template" type="xs:int">
<wadl:doc>The month to filter by</wadl:doc>
<wadl:param name="day" style="template" type="xs:int">
<wadl:doc>The day to filter by</wadl:doc>
<wadl:method name="GET">
<wadl:doc>Get the scheduel for the specific day</wadl:doc>
<wadl:response status="200">
<wadl:representation mediaType="application/xml" element="schedule" />