Response
Control how to respond to a request
Mock JSON Response helps control every aspect of a response by providing the following attributes
status
headers
inlineData
bodyFileName
Here is an example:
Status
status code of the response to be sent.
Headers
Headers to be set in the response.
Inline Data
Its a JS object which holds the data to be sent in the response.
Body File Name
This is a string which will define the name of the JSON file that will be used to import the response.
Other attributes of the response object will be discussed in upcoming chapters.
Last updated
Was this helpful?