From 27a41058afbf1256efb53211acfd4478b3031992 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Sat, 20 Apr 2024 14:28:13 +0200 Subject: [PATCH] Add state purge links in the docs --- content/docs/latest/data-buckets/overview.md | 2 +- content/docs/latest/route-responses/dynamic-rules.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/latest/data-buckets/overview.md b/content/docs/latest/data-buckets/overview.md index 5ef648fe..80b4817e 100644 --- a/content/docs/latest/data-buckets/overview.md +++ b/content/docs/latest/data-buckets/overview.md @@ -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.). diff --git a/content/docs/latest/route-responses/dynamic-rules.md b/content/docs/latest/route-responses/dynamic-rules.md index 6dbdb1af..c72bc794 100644 --- a/content/docs/latest/route-responses/dynamic-rules.md +++ b/content/docs/latest/route-responses/dynamic-rules.md @@ -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