Send HTML Response From Virtual API

This topic describes how to use a Groovy script to send an HTML response as a response of a virtual service.

Where to use

Use this script as a Script property of a response.

Example

Use the ${content} property expansion to insert the body of the HTML response to the body of the virtual API response:

Context propety expansion as a response body

See Also

Publication date: