Skip to content

05.0 Dumps

Amit Gupta edited this page Dec 29, 2016 · 1 revision

In simple words you can consider dumps as static file. They can be included like a file to construct a big response. The advantage of having dumps are

  • Reduce the size of response file. So they are more understandable and readable.
  • You can focus on specific part of response.
  • Increase consistency.

Currently dumps are static files. It means you can not construct them at run time from the data captured from request.

Syntax

[[dumpspath:file1,file2]]

The above syntax will insert data from project-folder/dumps/dumpspath/file1, and project-folder/dumps/dumpspath/file2. if dumps directory is not specified in config.json, then files would be served from project-folder/dumpspath.

Check the demo application for more detail.

Clone this wiki locally