From c848ddbd5afaa61beea55f2e685df95bed393d9e Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 9 Dec 2024 08:50:50 +0100 Subject: [PATCH] Fix urls --- content/docs/v9.0.0/api-endpoints/routing.md | 2 +- content/docs/v9.0.0/requests/query-parameters.md | 2 +- content/docs/v9.0.0/requests/supported-body-formats.md | 2 +- pages/releases/[version].tsx | 9 ++++----- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/content/docs/v9.0.0/api-endpoints/routing.md b/content/docs/v9.0.0/api-endpoints/routing.md index f30667ac..752f2626 100644 --- a/content/docs/v9.0.0/api-endpoints/routing.md +++ b/content/docs/v9.0.0/api-endpoints/routing.md @@ -69,7 +69,7 @@ You can also retrieve the route parameters by using the `{{urlParam 'paramName'} Routes **must** be declared without query parameters as they are not part of the route path. They can only be added to the request when calling an endpoint. -Query parameters can be retrieved with the **[`queryParam`](docs:/docs/latest/templating/mockoon-request-helpers/#queryparam) and [`queryParamRaw`](docs:/docs/latest/templating/mockoon-request-helpers/#queryparamraw) helpers** and are available in the **[response rules](docs:route-responses/dynamic-rules)** to check their content and serve different responses based on them. +Query parameters can be retrieved with the **[`queryParam`](docs:templating/mockoon-request-helpers/#queryparam) and [`queryParamRaw`](docs:templating/mockoon-request-helpers/#queryparamraw) helpers** and are available in the **[response rules](docs:route-responses/dynamic-rules)** to check their content and serve different responses based on them. **Arrays and objects are supported** in the query string. For more information, please refer to the [query parameters documentation](docs:requests/query-parameters). diff --git a/content/docs/v9.0.0/requests/query-parameters.md b/content/docs/v9.0.0/requests/query-parameters.md index 50b6405d..d6fb5602 100644 --- a/content/docs/v9.0.0/requests/query-parameters.md +++ b/content/docs/v9.0.0/requests/query-parameters.md @@ -42,7 +42,7 @@ Parsed query parameters: ## Where can I access the query parameters? -The parsed query parameters will be available **everywhere [templating helpers](docs:templating/overview) are supported**: response body, headers, rules, data buckets, callbacks, etc. You will be able to use the [`queryParam`](docs:templating/mockoon-request-helpers#queryparam) and [`queryParamRaw`](docs:/docs/latest/templating/mockoon-request-helpers/#queryparamraw) to access the parsed parameters and create dynamic responses based on it. +The parsed query parameters will be available **everywhere [templating helpers](docs:templating/overview) are supported**: response body, headers, rules, data buckets, callbacks, etc. You will be able to use the [`queryParam`](docs:templating/mockoon-request-helpers#queryparam) and [`queryParamRaw`](docs:templating/mockoon-request-helpers/#queryparamraw) to access the parsed parameters and create dynamic responses based on it. The parameters will also be **available in the [response rules](docs:route-responses/dynamic-rules)** to check their content and serve different responses based on them. diff --git a/content/docs/v9.0.0/requests/supported-body-formats.md b/content/docs/v9.0.0/requests/supported-body-formats.md index 4594d06b..3e4bcedd 100644 --- a/content/docs/v9.0.0/requests/supported-body-formats.md +++ b/content/docs/v9.0.0/requests/supported-body-formats.md @@ -23,7 +23,7 @@ Invalid bodies will be parsed as strings. ## What can I do with the parsed body? -The parsed body will be available **everywhere [templating helpers](docs:templating/overview) are supported**: response body, headers, rules, data buckets, callbacks, etc. You will be able to use helpers like [`body`](docs:/docs/latest/templating/mockoon-request-helpers/#body) and [`bodyRaw`](docs:/docs/latest/templating/mockoon-request-helpers/#bodyraw) to access the parsed body content and create dynamic responses based on it. +The parsed body will be available **everywhere [templating helpers](docs:templating/overview) are supported**: response body, headers, rules, data buckets, callbacks, etc. You will be able to use helpers like [`body`](docs:templating/mockoon-request-helpers/#body) and [`bodyRaw`](docs:templating/mockoon-request-helpers/#bodyraw) to access the parsed body content and create dynamic responses based on it. The body will also be **available in the [response rules](docs:route-responses/dynamic-rules)** to check its content and serve different responses based on it. diff --git a/pages/releases/[version].tsx b/pages/releases/[version].tsx index 9cafabe7..8b24b080 100644 --- a/pages/releases/[version].tsx +++ b/pages/releases/[version].tsx @@ -37,8 +37,9 @@ export async function getStaticProps({ const files = require.context('../../content/releases/', true, /\.\/.+\.md$/); const releasePaths = files.keys().sort(sortPathBySemver); - const fileContent = - await require(`../../content/releases/${params.version}.md`); + const fileContent = await require( + `../../content/releases/${params.version}.md` + ); const release = matter(fileContent.default); let releases = releasePaths.map((releasePath, releasePathIndex) => { @@ -84,9 +85,7 @@ export default function Release(props: {