Admin API
Get Cakes
GET http://localhost:3000/__admin/:scenario_name/reset
This endpoint allows you to get free cakes.
Path Parameters
Name
Type
Description
scenario_name
string
Scenario name to be reset, when passed as 'all', all scenarios will be reset to 'init'.
{
"message": "All scenarios are succefully reset"
}{
"error": "You have reached an invalid admin route",
"tip": "check request method"
}{
"message": "Error while resetting state",
"tip": "shopig scenario was not found"
}Last updated
Was this helpful?