Rest API - enctype & rawexpr
Posted: Thu Apr 28, 2016 8:20 pm
Hi Plum
I have a requirement to invoke a REST API for which both request & response have a format as "application/json".
Relevant section of WADL from REST API is pasted below.
In order to implement it I am using <data> tag and setting enctype as "application/json" but still I am getting error as "Unsupported encoding type: application/json".
Does Plum support this encoding? Please let me know.
Also let me know what value I need to use for "rawexpr" attribute.
An Example will be great. Thanks a lot.
------
<resource path="card/order/activationRequest">
<method name="POST">
<request>
<representation mediaType="application/json"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
------
I have a requirement to invoke a REST API for which both request & response have a format as "application/json".
Relevant section of WADL from REST API is pasted below.
In order to implement it I am using <data> tag and setting enctype as "application/json" but still I am getting error as "Unsupported encoding type: application/json".
Does Plum support this encoding? Please let me know.
Also let me know what value I need to use for "rawexpr" attribute.
An Example will be great. Thanks a lot.
------
<resource path="card/order/activationRequest">
<method name="POST">
<request>
<representation mediaType="application/json"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
------