Skip to content

Commit

Permalink
Add state purge links in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
255kb committed Apr 20, 2024
1 parent ef37988 commit 27a4105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/docs/latest/data-buckets/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ You can easily combine your data bucket contents by referencing other data bucke
## Data buckets generation

Data buckets are generated when the **server starts** in the order they are defined in the environment. Their state persist during all mock API calls. To regenerate a data bucket's content, restart the mock server.
Data buckets are generated when the **server starts** in the order they are defined in the environment. Their state persist during all mock API calls. To regenerate a data bucket's content, you can restart the mock server or you can also use the [admin API state purge endpoint](docs:admin-api/server-state).

If a data bucket contains [request helpers](docs:templating/mockoon-request-helpers), Mockoon will generate the bucket content only **after the first call** made to a route using this data bucket (by referencing it directly or using a data helper). It allows you to create bucket "configuration" routes that you can call programmatically with the content you want to reuse in your bucket using the request helpers (`body`, `queryParams`, etc.).
2 changes: 1 addition & 1 deletion content/docs/latest/route-responses/dynamic-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ In the dropdown menu you can choose between:
- the value of a [**route parameter**](docs:api-endpoints/routing#route-parameters).
- the value of a [**global variable**](docs:variables/global-variables).
- the value of a [**data bucket content**](docs:data-buckets/overview).
- the **request number** index starting at 1.
- the **request number** index starting at 1 (you can reset the request number by using the [state purge admin API](docs:admin-api/server-state)).

### 2. Property name or path

Expand Down

0 comments on commit 27a4105

Please sign in to comment.