Editing with Snapshots

This method is intended for updating requests belonging to the same endpoint

Prerequisites

  1. (Optional) Use a version tool such as Git to backup changes

Updating Requests

1

Find request snapshots that belong to an endpoint

stoobly-agent snapshot list --search <PATTERN> --select snapshot --select uuid

For example:

$ stoobly-agent snapshot list --search /api --select snapshot --select uuid
snapshot                                                             uuid
.stoobly/snapshots/requests/19/19cfd765-80bc-4a2c-ad36-c59e7dbb9c92  cd99c578-3a97-11f0-98ef-51122b0b22b6
2

Edit request snapshots

For each file found, make the desired change to the request snapshot. In the example from step 1, the request snapshot is stored in .stoobly/snapshots/requests/19/19cfd765-80bc-4a2c-ad36-c59e7dbb9c92 .

3

Create new snapshots for each updated request

stoobly-agent snapshot update --verify <SNAPSHOT-UUID>

In the example from step 1, the snapshot uuid is cd99c578-3a97-11f0-98ef-51122b0b22b6.

4

Apply the snapshots

stoobly-agent snapshot apply

Last updated

Was this helpful?