Editing with Snapshots
Prerequisites
(Optional) Use a version tool such as Git to backup changes
Updating Requests by Editing Snapshots
1
Find request snapshots that match a pattern
Run the following CLI command:
stoobly-agent snapshot list --search <PATTERN> --select snapshot --select uuidFor 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-51122b0b22b62
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
Run the following CLI command:
stoobly-agent snapshot update <SNAPSHOT-UUID>In the example from step 1, the snapshot uuid is cd99c578-3a97-11f0-98ef-51122b0b22b6.
4
Apply the snapshots
Run the following CLI command:
stoobly-agent snapshot applyLast updated
Was this helpful?