Binding queryParameters to xml example in post method


#1

I am currently designing a POST route that takes XML in the body of the request.

In RAML, post>queryParameters can be described with displayName, description, type, example etc.
then in post>responses>200>body>text/xml I can provide a sample xml in example. Is there a way to bind (through XPath?) the values of queryParameters to the sample xml so that when users modify values in the API Console, the XML body is automatically modified ?

Thank you.


#2

There is no such capability inside the console I am afraid. You can document that behaviour in RAML using annotations, but the console does most likely not understand these.