You can use variable data in response. The variables will be defined as tags like this
Request data: Use them if you want to add request data in your response.
- request.path (full path)
- request.url (full url with scheme, hostname, port, path and query parameters)
- request.autority (return scheme, hostname and port (optional))
You can extract information from the request body too, using a dot notation path:
- request.body."key" (support for
- request.body."deep"."key" (support for
Quick overview of the path syntax available to extract values form the request: https://github.com/tidwall/gjson#path-syntax
External streams: Perfect for embedding big payloads or getting data from another service.
Monster Mock provides a rich set of random variables that you can use in your mock response in other to make them more realistic.
- fake.Hex(n) - random hexidecimal string n characters in length
- fake.Int(n) - random positive integer less than or equal to n
- fake.IntMinMax(min, max) - random positive number greater or equal to min and less than max
- fake.Float(n) - random positive floating point number less than n
- fake.UUID - generates a unique id