-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Request body should be accessible when crafting the response.
Multiple possibilities can be studied:
Request body
<rootnode>
<value>
hello
</value>
</rootnode>api.yml
rules:
- matches: POST /test
response: !Inline [200, "<ok>{{body.xml.rootnode.value}}</ok>", "application/xml"] Or with a handlebars helper
api.yml
rules:
- matches: POST /test
response: !Inline [200, "<ok>{{#xpath body //value}}<anothervalue>{{@this}}</anothervalue>{{/xpath}}</ok>", "application/xml"] Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels