lneves
17 years agoNew Contributor
Unable to use WADL file with parameter with style="template"
Hello all.
It does not seem to be possible to use the request editor with operations generated from a WADL file that have a parameter with style="template".
The following wadl sample illustrates the problem.
It fails when trying to use the request editor for the operation "/event/{event-id}.
Using versions v.2.5.1 and v3.0beta1(nightly-08-06)
Regards.
--
Luis Neves
It does not seem to be possible to use the request editor with operations generated from a WADL file that have a parameter with style="template".
The following wadl sample illustrates the problem.
It fails when trying to use the request editor for the operation "/event/{event-id}.
Using versions v.2.5.1 and v3.0beta1(nightly-08-06)
Regards.
--
Luis Neves
<?xml version="1.0"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:schemaLocation="http://research.sun.com/wadl/2006/10 wadl.xsd"
xmlns="http://research.sun.com/wadl/2006/10"
xmlns:sa="urn:sapoalerts:api">
<grammars>
<include href="events.xsd" />
<include href="fault.xsd" />
</grammars>
<resources base="http://10.134.132.6:8089/alerts/v1">
<resource path="/events">
<method href="#get_event_list"/>
</resource>
<resource path="/event/{event-id}">
<method href="#get_event"/>
</resource>
</resources>
<method name="GET" id="get_event_list">
<request/>
<response>
<representation mediaType="application/xml" element="sa:Events"/>
<fault mediaType="application/xml" element="sa:Fault"/>
</response>
</method>
<method name="GET" id="get_event">
<request>
<param name="event-id" type="xsd:string" required="true" style="template" />
</request>
<response>
<representation mediaType="application/xml" element="sa:Event"/>
<fault mediaType="application/xml" element="sa:Fault"/>
</response>
</method>
</application>