I want to return a custom template response immediately for an apiProxy, when i receive a request on get uri /test/doc.
Some thing like success using html
I want to return a custom template response immediately for an apiProxy, when i receive a request on get uri /test/doc.
Some thing like success using html
Please be specific, what is your query here?
Well on the /test/doc uri/resource/conditonal flow you can add an Assign Message Policy on the response side and add the html code in the Payload.
<?xml version="1.0" encoding="UTF-8"?>
<AssignMessage async="false" continueOnError="false" enabled="true" name="Assign-Message-1">
<DisplayName>Assign Message-1</DisplayName>
<Properties />
<Set>
<Payload>
<html>
<body>Some thing like success using html</body>
</html>
</Payload>
</Set>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<AssignTo createNew="false" transport="http" type="request" />
</AssignMessage>