Path vs Query Parameters in HTTP Requests (with Postman)

Поделиться
HTML-код
  • Опубликовано: 6 авг 2024
  • 👉 Want to learn more about Postman? Get my Postman complete course at a special price and help support this RUclips channel.
    vdespa.com/courses/?q=RUclips
    ___
    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

  • @LuckyGnom
    @LuckyGnom Год назад +4

    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.

  • @vdespa
    @vdespa  4 года назад +1

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

  • @vikrantsingh2804
    @vikrantsingh2804 5 лет назад +2

    Thanks Buddy, you explained it very clearly

  • @sheikahbib
    @sheikahbib 5 лет назад +1

    Very Nice explanation ever had...Keep going .

  • @imcintyre01
    @imcintyre01 Год назад +1

    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 4 года назад +2

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

    • @vdespa
      @vdespa  4 года назад

      You are welcome and that this was helpful

  • @wandavazquez6320
    @wandavazquez6320 Год назад

    Great information. Thank you from a newbie

    • @vdespa
      @vdespa  Год назад

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

  • @muchwow3839
    @muchwow3839 3 года назад +2

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

  • @M0oMo0o
    @M0oMo0o 5 лет назад

    Thank you

  • @anukooljaiswal8626
    @anukooljaiswal8626 11 месяцев назад

    Nice bro.

  • @anandskpm4296
    @anandskpm4296 7 месяцев назад

    Clear explanation thank you 👌

    • @vdespa
      @vdespa  7 месяцев назад

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

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

  • @johnbritolima
    @johnbritolima 4 года назад

    Good to know: 04:00

  • @enggadda
    @enggadda Год назад

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

  • @alexrigar
    @alexrigar 4 года назад +1

    nice!

    • @vdespa
      @vdespa  4 года назад

      Thank you for your comment, Alejandro!

  • @franznataly
    @franznataly 4 года назад

    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 4 года назад

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

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

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

  • @mrflexii2067
    @mrflexii2067 Год назад

    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  Год назад +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.

  • @pengli4769
    @pengli4769 Год назад

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

    • @vdespa
      @vdespa  Год назад

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

  • @annapureddy.1150
    @annapureddy.1150 2 года назад

    how to use >=,

    • @vdespa
      @vdespa  2 года назад

      Can you be a bit more specific please?

  • @sharikkumar8581
    @sharikkumar8581 2 года назад

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

    • @vdespa
      @vdespa  2 года назад

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

    • @sharikkumar8581
      @sharikkumar8581 2 года назад

      @@vdespa I think so.

  • @jasur.ahmadoff
    @jasur.ahmadoff 2 года назад +1

    Thank you

    • @vdespa
      @vdespa  2 года назад

      You're welcome