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
    ___

КОМЕНТАРІ • 39

  • @vdespa
    @vdespa  4 роки тому +1

    Download the FREE Postman Quick Reference Guide
    👉 www.subscribepage.com/postman

  • @LuckyGnom
    @LuckyGnom Рік тому +5

    Thank you a lot! I was a bit confused and you were the only one who had a separate video with a clear explanation.

    • @vdespa
      @vdespa  Рік тому

      Glad to hear that! You are welcome. Thank you for leaving a comment.

  • @imcintyre01
    @imcintyre01 Рік тому +2

    Thank you, this helped me to better understand the differences between before the Question Mark and after.

    • @vdespa
      @vdespa  Рік тому

      Glad it was helpful! You are welcome. Thank you for leaving a comment.

  • @maryamomar4106
    @maryamomar4106 5 років тому +2

    thank you! I was lost and this helped me a lot.

    • @vdespa
      @vdespa  5 років тому

      You are welcome and that this was helpful

  • @vikrantsingh2804
    @vikrantsingh2804 5 років тому +2

    Thanks Buddy, you explained it very clearly

  • @muchwow3839
    @muchwow3839 3 роки тому +3

    Can you please explain how queryparams are actually written in a REST controller?

  • @wandavazquez6320
    @wandavazquez6320 2 роки тому

    Great information. Thank you from a newbie

    • @vdespa
      @vdespa  2 роки тому

      Glad it was helpful! You are welcome. Thank you for leaving a comment.

  • @sheikahbib
    @sheikahbib 5 років тому +1

    Very Nice explanation ever had...Keep going .

  • @anandskpm4296
    @anandskpm4296 Рік тому

    Clear explanation thank you 👌

    • @vdespa
      @vdespa  Рік тому

      Glad it was helpful! You are welcome. Thank you for leaving a comment.

  • @enggadda
    @enggadda Рік тому

    how to make @QueryParam as optional (example making the name as not required )

  • @anukooljaiswal8626
    @anukooljaiswal8626 Рік тому

    Nice bro.

  • @johnbritolima
    @johnbritolima 5 років тому

    Good to know: 04:00

  • @garycolman5193
    @garycolman5193 5 років тому +1

    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?

  • @franznataly
    @franznataly 5 років тому

    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

    • @franznataly
      @franznataly 5 років тому

      @@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?

  • @a_1122_as
    @a_1122_as 3 роки тому

    what if I don't have a params tap on postman is it an older version or what ?

    • @vdespa
      @vdespa  3 роки тому +1

      Look below the URL. There query params should be there.

    • @a_1122_as
      @a_1122_as 3 роки тому +1

      @@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.

  • @zzzzzssssss4769
    @zzzzzssssss4769 2 роки тому

    When to use path variable, when to use query variable?

    • @vdespa
      @vdespa  2 роки тому

      You need to check the API documentation and see. If you are using an API is not really your decision.

  • @mrflexii2067
    @mrflexii2067 2 роки тому

    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?

    • @vdespa
      @vdespa  2 роки тому +1

      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.

  • @alexrigar
    @alexrigar 5 років тому +1

    nice!

    • @vdespa
      @vdespa  5 років тому

      Thank you for your comment, Alejandro!

  • @M0oMo0o
    @M0oMo0o 5 років тому

    Thank you

  • @sharikkumar8581
    @sharikkumar8581 3 роки тому

    If you explain a concept then please take a simple example. Else you are wasting other's time as well.

    • @vdespa
      @vdespa  3 роки тому

      Thanks for your feedback. Do you mean that the API was too complex for this example?

    • @sharikkumar8581
      @sharikkumar8581 3 роки тому

      @@vdespa I think so.

  • @annapureddy.1150
    @annapureddy.1150 3 роки тому

    how to use >=,

    • @vdespa
      @vdespa  3 роки тому

      Can you be a bit more specific please?

  • @jasur.ahmadoff
    @jasur.ahmadoff 2 роки тому +1

    Thank you

    • @vdespa
      @vdespa  2 роки тому

      You're welcome