From ee8e162f3dd02e28ebd43117b02b4a03a330710e Mon Sep 17 00:00:00 2001 From: Krystian Marcisz Date: Thu, 22 Aug 2024 14:10:39 +0200 Subject: [PATCH] feat: add hint for Request Path Variables to improve UX (#2873) * feat: add hint for Request Path Variables to improve UX --- .../src/components/RequestPane/QueryParams/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/bruno-app/src/components/RequestPane/QueryParams/index.js b/packages/bruno-app/src/components/RequestPane/QueryParams/index.js index ead38b8c9..460def1fd 100644 --- a/packages/bruno-app/src/components/RequestPane/QueryParams/index.js +++ b/packages/bruno-app/src/components/RequestPane/QueryParams/index.js @@ -224,6 +224,16 @@ const QueryParams = ({ item, collection }) => { : null} + {!(pathParams && pathParams.length) ? +
+ Hint: Path variables are automatically added whenever the + :name + template is used in the URL, for example: + + https://example.com/v1/users/:id + +
+ : null} );