Using the template
element, we can easily define static content with specified content type and dynamic generation using groovy.
<api port="2000">
<response>
<template contentType="application/json">
{
"city": "bonn",
"country": "germany"
}
</template>
</response>
<return />
</api>
Template | Documentation | Examples |