From b4d4b10ba5e6d19933762444dbf1b21ab0fe35a6 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Thu, 15 Aug 2024 16:47:09 +0300 Subject: [PATCH] docs: fix $lt and $gt in api reference (#8580) --- www/apps/api-reference/app/_mdx/admin.mdx | 6 +++--- www/apps/api-reference/app/_mdx/store.mdx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/www/apps/api-reference/app/_mdx/admin.mdx b/www/apps/api-reference/app/_mdx/admin.mdx index 314eca9aad..14ae72f9ea 100644 --- a/www/apps/api-reference/app/_mdx/admin.mdx +++ b/www/apps/api-reference/app/_mdx/admin.mdx @@ -331,7 +331,7 @@ For example: ```bash -curl -g "http://localhost:9000/admin/products?created_at[lt]=2023-02-17" \ +curl -g "http://localhost:9000/admin/products?created_at[$lt]=2023-02-17" \ -H 'Authorization: Bearer {jwt_token}' ``` @@ -344,7 +344,7 @@ For example: ```bash -curl -g "http://localhost:9000/admin/products?created_at[lt]=2023-02-17T07:22:30Z" \ +curl -g "http://localhost:9000/admin/products?created_at[$lt]=2023-02-17T07:22:30Z" \ -H 'Authorization: Bearer {jwt_token}' ``` @@ -382,7 +382,7 @@ For example: ```bash -curl -g "http://localhost:9000/admin/products?created_at[lt]=2023-02-17&created_at[gt]=2022-09-17" \ +curl -g "http://localhost:9000/admin/products?created_at[$lt]=2023-02-17&created_at[$gt]=2022-09-17" \ -H 'Authorization: Bearer {jwt_token}' ``` diff --git a/www/apps/api-reference/app/_mdx/store.mdx b/www/apps/api-reference/app/_mdx/store.mdx index 901d626a3a..e9d368fab5 100644 --- a/www/apps/api-reference/app/_mdx/store.mdx +++ b/www/apps/api-reference/app/_mdx/store.mdx @@ -348,7 +348,7 @@ For example: ```bash -curl -g "http://localhost:9000/store/products?created_at[lt]=2023-02-17" +curl -g "http://localhost:9000/store/products?created_at[$lt]=2023-02-17" ``` @@ -360,7 +360,7 @@ For example: ```bash -curl -g "http://localhost:9000/store/products?created_at[lt]=2023-02-17T07:22:30Z" +curl -g "http://localhost:9000/store/products?created_at[$lt]=2023-02-17T07:22:30Z" ``` @@ -396,7 +396,7 @@ For example: ```bash -curl -g "http://localhost:9000/store/products?created_at[lt]=2023-02-17&created_at[gt]=2022-09-17" +curl -g "http://localhost:9000/store/products?created_at[$lt]=2023-02-17&created_at[$gt]=2022-09-17" ```