# Admin API

## Get Cakes

<mark style="color:blue;">`GET`</mark> `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'. |

{% tabs %}
{% tab title="200 Successfully reset scenario" %}

```
{
    "message": "All scenarios are succefully reset"
}
```

{% endtab %}

{% tab title="400 When the reset request is not POST type" %}

```
{
    "error": "You have reached an invalid admin route",
    "tip": "check request method"
}
```

{% endtab %}

{% tab title="404 " %}

```
{
    "message": "Error while resetting state",
    "tip": "shopig scenario was not found"
}
```

{% endtab %}
{% endtabs %}
