Scenarios
A Scenario is a sequence of Requests that describes a workflow
Last updated
A Scenario is a sequence of Requests that describes a workflow
Last updated
Use Cases:
Replaying or testing requests in a sequence
Documenting common workflows
Sharing those workflows with others
Take for example in a new user registration flow for some hypothetical application, the following HTTP requests are sent:
POST /user
to create the new user
GET /user/{user_id}
to retrieve data about the user
GET /products
to retrieve a store's list of products to present to the user
This sequence of requests is specific for that workflow, has a defined order and can tied together. This enables you to group requests together, share them with other engineers or even replay the whole sequence. This is what we define as a scenario.
If using the UI, navigate to the Scenarios page and click on the CREATE button on the top left corner.
For our full guide, see How to Create Scenarios .
Every Scenario will have a unique identifier for your Stoobly context. This can be retrieved from the UI or the CLI.
Navigate to the scenarios page then click on a scenario. This will open the scenario details page from the right side. At the top there will be a Key field which is the scenario key.
Run the following command to view your scenarios:
Here in our example we have a single scenario. The scenario Key can be found in the key
column which is eyJwIjogMCwgImkiOiAzfQo=
.