REST API Headers vs Path Parameters vs Query Parameters vs Body

Поделиться
HTML-код
  • Опубликовано: 29 дек 2024
  • НаукаНаука

Комментарии • 33

  • @apioncloud9092
    @apioncloud9092  4 месяца назад

    Text version of this video is available here: www.apioncloud.com/http-headers-path-variables-query-parameters-body.html

  • @kopilkaiser8991
    @kopilkaiser8991 2 месяца назад +2

    I found this video very useful. Thank you for providing this content.

    • @apioncloud9092
      @apioncloud9092  Месяц назад

      Thank you for leaving a comment and I am glad that you found this video useful.

  • @ScottHolland0331
    @ScottHolland0331 Год назад +6

    I'm new to APIs and have been struggling to understand the difference between headers, body, path. Very helpful. Thank you.

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

      I am glad that you found this video helpful. Thank you.

  • @alfredabate3176
    @alfredabate3176 Год назад +3

    Straightforward and simple. Thank you.
    I learn so much from this. Well done. 🙏

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

      Thank you, I’m glad that you found this video useful.

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

    Thank you for breaking out this information and best practices!

  • @shubhankartiwari5101
    @shubhankartiwari5101 11 месяцев назад +1

    Precise and straight to the point

  • @kattasrihari7332
    @kattasrihari7332 5 месяцев назад +1

    Excellent information

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

    Superb!!!!

  • @amirhoseini3563
    @amirhoseini3563 6 месяцев назад +1

    excellent explanation ,well done

    • @apioncloud9092
      @apioncloud9092  5 месяцев назад

      Glad you found the explanation useful. Thank you!

  • @niteeshmishra8281
    @niteeshmishra8281 6 месяцев назад +1

    it was really quite precise and much informative.

    • @apioncloud9092
      @apioncloud9092  6 месяцев назад

      Glad that you found it informative. Thank you!

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

    Great explanation with examples 👏

  • @mudasir4965
    @mudasir4965 Год назад +2

    You're doing a great job man. Thank you.

  • @fatimaiqra2169
    @fatimaiqra2169 3 месяца назад +1

    really useful video thanks a lot!

  • @임성근-q1y
    @임성근-q1y Год назад +3

    Thanks for the intro. But I was wondering, why don’t just use a post request with the body in every case? That way it could make the code more simple no?

    • @apioncloud9092
      @apioncloud9092  Год назад +3

      Short answer is that you can use a POST request for every case. If you are writing a HTTP/REST API and you will be calling that API from another application of yours then you can use POST request for everything.
      However, there are norms, conventions, best practices that people like to follow because it isn’t always just you working alone. When you are working for an employer with many other programmers, there will always be atleast one programmer who will question you for not following the conventions. For example, when an API’s job is to only return data and you decide to use POST method in your API instead of GET then others may ask you to justify why you used POST since it a general understanding that GET method is for data retrieval and POST request are used to change the state of the data on the server.
      Hope this answers your question.

  • @OwaisAhmed-j8n
    @OwaisAhmed-j8n Год назад +1

    amazingggg

  • @ka.khatib
    @ka.khatib 3 месяца назад +1

    thank you this helped me

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

    how come GET request cant have body?

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

      I don't think I've said anything like that in the video, have I?
      I'll double check the video. You are correct, GET request shouldn't have a request body