Workflow
Last updated
Was this helpful?
Last updated
Was this helpful?
A workflow groups configurations for services to perform distinct use cases. By default, Stoobly provides configurations for the record, mock and test workflows.
To learn more about the role of individual services, see:
To run a workflow, see:
To validate a workflow, see:
Any hidden file will be overritten when the scaffold service create command is rerun.
The journey of a request:
A request gets sent from the host e.g. browser or cURL
Gets sent to the gateway service
Gateway service routes the request based on hostname
Request gets intercepted by Stoobly running as a proxy
Lifecycle hooks get triggered
Stoobly reverse proxies the request to the local or external API
On response, Stoobly records the request to its respective .stoobly
folder
Lifecycle hooks get triggered
The journey of a request:
A request gets sent from the host e.g. browser or cURL
Gets sent to the gateway service
Gateway service routes the request based on hostname
Request gets intercepted by Stoobly running as a proxy
Lifecycle hooks get triggered
Stoobly mocks requests if it has been previously recorded. If the request is not found, it can conditionally reverse proxy the request to the local or external API
Lifecycle hooks get triggered
The journey of a request:
A request gets sent from the entrypoint service
Gateway service routes the request based on hostname
Request gets intercepted by Stoobly running as a proxy
Lifecycle hooks get triggered
Stoobly mocks requests if it has been previously recorded. If the request is not found, it can conditionally reverse proxy the request to the local or external API
Lifecycle hooks get triggered
Second script that executes when a workflow runs. Should contain configuration commands for Stoobly. See , , and .
Enables defining mock responses for specific URL patterns. To learn more see .
Enables reading and modifying requests during specific points in their lifecycle. To learn more see .
Enables defining mock request paths and responses using files stored in this folder. To learn more see .