Path vs Query Parameters in HTTP Requests (with Postman)
Вставка
- Опубліковано 5 лют 2025
- 👉 Want to learn more about Postman? Get my Postman complete course at a special price and help support this UA-cam channel.
vdespa.com/cou...
___
In this tutorial, I wanted to explain the difference between path params and query params and will exemplify this in Postman.
___
// P L A Y L I S T S
▸ Learn Postman | goo.gl/iEhyzt
___
// F R E E R E S O U R C E S
▸▸▸ Download the FREE Postman Quick Reference Guide
goo.gl/GjWcvg
___
// P O S T M A N O N L I N E T R A I N I N G
💥 Want to learn more about Postman? Check my Postman online course.
Get it for only $9.99 (limited supply, 75% OFF, first 200 viewers):
goo.gl/xLnNHd
___
Download the FREE Postman Quick Reference Guide
👉 www.subscribepage.com/postman
Thank you a lot! I was a bit confused and you were the only one who had a separate video with a clear explanation.
Glad to hear that! You are welcome. Thank you for leaving a comment.
Thank you, this helped me to better understand the differences between before the Question Mark and after.
Glad it was helpful! You are welcome. Thank you for leaving a comment.
thank you! I was lost and this helped me a lot.
You are welcome and that this was helpful
Thanks Buddy, you explained it very clearly
Can you please explain how queryparams are actually written in a REST controller?
Great information. Thank you from a newbie
Glad it was helpful! You are welcome. Thank you for leaving a comment.
Very Nice explanation ever had...Keep going .
Clear explanation thank you 👌
Glad it was helpful! You are welcome. Thank you for leaving a comment.
how to make @QueryParam as optional (example making the name as not required )
Nice bro.
Good to know: 04:00
How do you apply Query Parameter values to a html document? Or am I misunderstanding this tutorial? I need to set a html or PDF document with 'version' and 'language'
(such as: version=v1.1& language='English') parameters/values but how and where are these values applied to individual files located on a website?
Hi Valentina, how can I test the query parameter:? for example, if a query parameter is a measurement like a cm , in, kp, etc, how is possible to test these values? thanks
@@vdespa, for example, I have in the response body, a value in cm and I have the possibility through the query parameter change that value to in, so then I need to check if the value cm was changed properly to in, make sense?
what if I don't have a params tap on postman is it an older version or what ?
Look below the URL. There query params should be there.
@@vdespa thanks for helping, I checked it wasn't there but I realized I was using the chrome version when I downloaded the full version(I guess) it was right there below the URL, also it turned out to be the same as writing it manually after the URL.
When to use path variable, when to use query variable?
You need to check the API documentation and see. If you are using an API is not really your decision.
So let's say we have a request like this one - GET: {{URL}}/image/{{ImageID}}}.
When we have many different images with different identifiers, it is better to only use a path variable like: id than a varaibale collection like {{imageID}}, am I right?
You should define a path variable anyway, just to keep things clean. After this, you can manually enter a value or use a Postman variable.
nice!
Thank you for your comment, Alejandro!
Thank you
If you explain a concept then please take a simple example. Else you are wasting other's time as well.
Thanks for your feedback. Do you mean that the API was too complex for this example?
@@vdespa I think so.
how to use >=,
Can you be a bit more specific please?
Thank you
You're welcome