Introduction to APIs, Postman and API testing in 25 minutes (GET vs POST)

Поділитися
Вставка
  • Опубліковано 6 вер 2024

КОМЕНТАРІ • 41

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

    👉 Want to learn more about Postman? Check my Postman online course.
    www.udemy.com/course/postman-the-complete-guide/?referralCode=4E8B90BA4B5EE8DA9237

  • @ajlozadaro
    @ajlozadaro 4 роки тому +2

    It is the cleanest, most professional and clearest video I have seen so far. I congratulate you for the contribution.

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

      Wow, thank you!

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

    One hell of an tutorial. Thank You, means a lot.

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

      You are welcome. Thank you for leaving a comment.

  • @CharuMaheshwari-yf8mo
    @CharuMaheshwari-yf8mo Рік тому +1

    awesome tutorial

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

      You are welcome. Thank you for leaving a comment.

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

    @Valentin Despa: Quick question: while deleting the record, we did not give any Authorization? May I know why? Or can i say that Delete method did not need any Authorization (in this case, API with delete method can run without Authorization)
    I would appreciate your response.

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

      Good observation, Aman. This API does not require authorization for this endpoint, but it probably should, just to keep things consistent. Thanks for your remark.

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

    I love the cat notes :) And the tutorials are very interesting..!

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

      Glad you like them! ;)

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

    Great video! Very helpful. Thanks for posting.

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

      Thanks for watching!

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

    I appreciate you for work you have done

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

      Thank you very much!

  • @staulik
    @staulik Рік тому +1

    Your class is awesome, by the way: what about send-me that shirt? lol

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

      You are welcome. Thank you for leaving a comment.

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

    Awesome! thank you very very much! Pressing subscribe :)

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

      You are welcome. Thank you for leaving a comment.

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

    Excelent video! Very helpful. I am loving your courses on udemy. Keep up the good work Valentin!

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

      Thank you very much, João!

  • @Andrew_OHara
    @Andrew_OHara 4 роки тому +2

    Thank you, this helped alot! Great tutorial :)

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

      I am glad, thank you for letting me know.

  • @gdd546
    @gdd546 4 роки тому +2

    Thank you, is very helpful. I'm doing the udemy course also.
    I haven't managed to get my head around the swagger docs for api's, hoping you could help please. Do these docs essentially detail all the endpoints of the api has, and are used as a reference point for using postman? Who creates these docs and do testers request it from the devs?

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

      Thanks for taking the course! The swagger documentation (aka swagger UI) is auto generated based on the code and get's updated automatically. As you said, it is just a documentation of the API (endpoints, request method, body format, ...).
      Swagger has recently become a specification (OpenAPI) in a JSON or YAML format. You can import that in Postman and generate a collection.

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

    Hi, I want to learn API with PostMan

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

      Begin here: ua-cam.com/video/VywxIQ2ZXw4/v-deo.html

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

    Dear Valantine, Your TShirt is nice with POSTMAN Logo. do we get online from Amazon? BTW Im from India

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

      I got it last year from Postman shop here: store.getpostman.com/

    • @meghasandesam
      @meghasandesam 4 роки тому

      @@vdespa ...Thanks for the info. sure will try...

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

    Hi Valentine, This is a good video for the starters indeed with good example. Am currently working on postman from more than a year, I have a question may be good idea to ask here and help me n community if possible. The question is, I have a collection that runs end to end in different environment in CLI using npm (Fully automated using pre requisite scrips to generate random data for each field). Now I want to dockerise it so that I can ship into Jenkins pipe line and run it in schedule. Would be great if you can make a video on this. Thanks again

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

      Thank you for your comment. Just to clarify, you want in Jenkins to directly run a Docker image containing Newman and the Postman collection?

    • @sharmak2746
      @sharmak2746 4 роки тому

      @@vdespa Yes. That's perfectly right. Suggest me if there is any other way too as we have one of the applications in cloud n the corresponding collections is automated but running in my local. This eventually needs to go to Jenkins pipe line and should trigger as soon as there a deployment. Am identifying ways to do it. However no clue. Hopefully will get some solution soon. Am new to docker. Would be good if you can help out ways of doing. May a good idea to share a video on how to dockerise postman collections with Newman n running in pipeline

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

      @@sharmak2746 you can use a Newman docker images and run the tests in that way. Would that help?

    • @sharmak2746
      @sharmak2746 4 роки тому

      @@vdespa yes. Need to try how to do that? Is there any documentation to convert postman collections n new man into a docker image

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

      @@sharmak2746 You don't need to convert them. You just need to use an existing Docker image. learning.postman.com/docs/postman/collection-runs/newman-with-docker/

  • @coolkostian
    @coolkostian 4 роки тому

    Is it possible to cover a 'Negative' API test scenario in POSTMAN? I'm verifying that Error: 400 is expected and 1/2 of my test is passing and another is failing with "Failed | AssertionError: expected false to be truthty" is there any way to avoid this assertion error?

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

      Hi, of course, Postman can also check for any errors that you can generate. Why does it bother you that one assertion is failing while the other one is successful?

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

    1.In the first request I am generating token using basic Auth 2. In the next request, using the generated token ,I am sending a request payload where I want to set like if the username, password combination (in the first request) is suppose a and b, then I want my tradingAgent field to be suppose B, else C or other combinations How can I achieve this, I am new to postman and javascripting.
    My second request looks like this
    "sequence": "5533",
    "tradingAgent": "{{tradingAgent}}",
    I understand in the pre-requisite script I have to write..but the below doesnt work..enter image description here
    var username = pm.environment.get("username");
    if (username = ("a")) (password = ("b")) pm.environment.set("tradingAgent","B");
    else
    pm.environment.set("tradingAgent","C")

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

      Your if statement looks weird. Join the Facebook community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.