Postman Beginner Tutorial 3 | POST API Request

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 มิ.ย. 2022
  • All FREE courses - automationstepbystep.com/
    Notes:
    How to add POST API Request
    Run and check Response
    #Postman #APITesting
    Postman Tutorial for Beginners
    Postman API Testing tutorials
    How to use Postman
    Postman online training
    ____________________________________________________________
    Stories by Raghav - automationstepbystep.com/stor...
    My Udemy Courses - automationstepbystep.com/udem...
    Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you
    You can support my mission for education by sharing this knowledge and helping as many people as you can
    If my work has helped you, consider helping any animal near you, in any way you can.
    _______ ONLINE COURSES TO LEARN _______
    automationstepbystep.com/free...
    GitHub - github.com/Raghav-Pal/
    Udemy - www.udemy.com/user/raghav-pal-3/
    Training by Raghav at your venue - raghav.qna@gmail.com
    Training schedule - automationstepbystep.com/trai...
    ----------- UI TESTING -----------
    Selenium Beginners - bit.ly/2MGRS8K
    Selenium Java Framework from Scratch - bit.ly/2N9xvR6
    Selenium Python - bit.ly/2oyMp5x
    Selenium Tips - bit.ly/2owxc50
    Selenium Builder - bit.ly/2MKNtlq
    Katalon Studio - bit.ly/2wARFdi
    Robot Framework with RIDE- bit.ly/2Px6Ue9
    Robot Framework with Eclipse - bit.ly/2N8DZxb
    Protractor - bit.ly/2KtqVkU
    TestProject - bit.ly/2DRNJYE
    ----------- API TESTING -----------
    Web Services (API) - bit.ly/2MGafL7
    SoapUI - bit.ly/2MGahmd
    Postman - bit.ly/2wz8LrW
    General - bit.ly/2PYdwmV
    Katalon Studio API Testing - bit.ly/2BwuCTN
    ----------- MOBILE TESTING -----------
    Appium - bit.ly/2ZHFSGX
    Mobile Playlist - bit.ly/2PxpeUv
    ----------- CI | CD | DEVOPS -----------
    Jenkins Beginner - bit.ly/2MIn8EC
    Jenkins Tips & Trick - bit.ly/2LRt6xC
    Docker - bit.ly/2MInnzx
    Kubernetes - bit.ly/2MJIlMK
    ------------VIRTUALISATION------------
    Virtualization on windows - bit.ly/2SItIL9
    ----------- VERSION CONTROL SYSTEM -----------
    Git & GitHub - bit.ly/2Q1pagY
    GitLab - bit.ly/2kQPGyQ
    ----------- PERFORMANCE TESTING -----------
    JMeter Beginner - bit.ly/2oBbtIU
    JMeter Intermediate - bit.ly/2oziNVB
    JMeter Advanced - bit.ly/2Q22Y6a
    JMeter Tips & Tricks - bit.ly/2NOfWD2
    Performance Testing - bit.ly/2wEXbLS
    ----------- PROGRAMMING -----------
    Java Beginners - bit.ly/2PVUcXs
    Java Tips & Tricks - bit.ly/2CdcDnJ
    GROOVY - bit.ly/2FvWV5C
    JAVASCRIPT - bit.ly/2KJDZ8o
    PYTHON - bit.ly/2Z4iRye
    ----------- IDE -----------
    Visual Studio Code - bit.ly/2V15yvt
    ----------- BUILD TOOLS -----------
    Maven - bit.ly/2NJdDRS
    Gradle - bit.ly/30l3h1B
    ----------- OTHERS -----------
    Redis- bit.ly/2N9jyCG
    Misc - bit.ly/2Q2q5xQ
    Tools & Tips - bit.ly/2oBfwoR
    QnA Friday- bit.ly/2NgwGpw
    Sunday Special - bit.ly/2wB23BO
    Ask Raghav - bit.ly/2CoJGWf
    Interviews - bit.ly/2NIPPxk
    All Playlists - bit.ly/2LSiezA
    ---------- Connect with Raghav -----------
    Udemy Courses - www.udemy.com/user/raghav-pal-3/
    Twitter - / learnwithraghav
    TH-cam - / automationstepbystep
    Never Stop Learning
    Raghav

ความคิดเห็น • 90

  • @katekate1257
    @katekate1257 11 หลายเดือนก่อน +4

    i just want to say that you are a great teacher!

    • @RaghavPal
      @RaghavPal  11 หลายเดือนก่อน

      Thanks a lot Kate

  • @latinbishop1722
    @latinbishop1722 ปีที่แล้ว +1

    Been looking for something like this for months. Thank you

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      So glad it helped

  • @GaniraAtash
    @GaniraAtash 5 หลายเดือนก่อน +1

    I love to learn. What you do for people is amazing.

    • @RaghavPal
      @RaghavPal  5 หลายเดือนก่อน

      Thanks for the kind words Ganira

  • @raginidubey4104
    @raginidubey4104 ปีที่แล้ว

    My sister suggested your channel I am glad she did. Your content is super helpful.

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      Great to know it helped Ragini

  • @vaibhavsaurkar2204
    @vaibhavsaurkar2204 2 ปีที่แล้ว

    Simple and easy to understand because of your teaching style and approach 🙏

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว +1

      Glad to hear that

    • @itsme-vc8fs
      @itsme-vc8fs ปีที่แล้ว

      Very very true

  • @ameeriad
    @ameeriad ปีที่แล้ว

    Thank you for creating this tutorial, it really helped refresh my memory on how to use Postman 🖖

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      Glad it was helpful Ameer

  • @rajaprashar4862
    @rajaprashar4862 10 หลายเดือนก่อน

    i am so happy i discoverd your channel here!

    • @RaghavPal
      @RaghavPal  10 หลายเดือนก่อน

      Most welcome Raja

  • @najukumbla
    @najukumbla 2 ปีที่แล้ว +2

    Very helpful video

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Glad it was helpful!

  • @arzu300
    @arzu300 2 ปีที่แล้ว +1

    Thank you Raghav

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Most welcome

  • @sony8664
    @sony8664 2 ปีที่แล้ว +3

    Waiting for remaining tutorials
    Thanks!!!

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Most welcome

  • @AnjuliKhare
    @AnjuliKhare 2 ปีที่แล้ว +1

    thank u so much sir. waiting for next video on postman.

  • @user-qz2dw4ii1b
    @user-qz2dw4ii1b ปีที่แล้ว

    Thank you, sir.

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว +1

      You're welcome Avni

  • @chris10184
    @chris10184 5 หลายเดือนก่อน

    You are amazing thank you.

    • @RaghavPal
      @RaghavPal  5 หลายเดือนก่อน

      most welcome Chris

  • @anketambekar3902
    @anketambekar3902 ปีที่แล้ว

    Very well explained

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      Glad it was helpful Anket

  • @wantedlepota9960
    @wantedlepota9960 3 หลายเดือนก่อน

    I will start playing around with tests now. thanks

    • @RaghavPal
      @RaghavPal  3 หลายเดือนก่อน

      Good luck..

  • @theyouthmedia9451
    @theyouthmedia9451 10 หลายเดือนก่อน

    Thank you so much brother.

    • @RaghavPal
      @RaghavPal  10 หลายเดือนก่อน

      You are most welcome

  • @azatryspaev3315
    @azatryspaev3315 9 หลายเดือนก่อน

    Thanks bro!

    • @RaghavPal
      @RaghavPal  9 หลายเดือนก่อน +1

      Most welcome Azat

  • @fidawani7200
    @fidawani7200 7 หลายเดือนก่อน

    May Allah bless you bro

    • @RaghavPal
      @RaghavPal  7 หลายเดือนก่อน

      Thanks

  • @user-vk9eq1kv9j
    @user-vk9eq1kv9j 11 หลายเดือนก่อน

    thank you😄

    • @RaghavPal
      @RaghavPal  10 หลายเดือนก่อน

      You're welcome 😊

  • @AjeetSingh-mq3ko
    @AjeetSingh-mq3ko ปีที่แล้ว

    good job

  • @NabeelButt
    @NabeelButt ปีที่แล้ว +1

    You made it look so easy. However, when I actually try to do it on a real life application the documentation from the vendor is way too daunting. It all looks Chinese to generate session token as header etc. have you done a video on understanding all those technical jargons? If yes please pass it on 👍

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว +2

      Thanks for your message Nabeel, I will check on this

  • @tctc1500
    @tctc1500 หลายเดือนก่อน

    What screen editing tool are you using? You are SO smooth. Excellent tutorial!

    • @RaghavPal
      @RaghavPal  หลายเดือนก่อน

      I generally use mac tools

    • @tctc1500
      @tctc1500 หลายเดือนก่อน

      @@RaghavPal Thank you for responding! I have been overdosing on your videos! Top notch!

  • @abeenaa9869
    @abeenaa9869 ปีที่แล้ว

    hi sir, after the 'post method' , can we able to view all the records with the newly created one using the 'get method' ?

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      Hi Abeena, Yes, if they are created successfully on the server, the GET request should be able to retrieve them

  • @shahzaibidreesahmed4827
    @shahzaibidreesahmed4827 ปีที่แล้ว

    Great explained 👍
    Sir why we use snippets ?

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      To create tests or any other action automatically

  • @fagunshah8993
    @fagunshah8993 2 ปีที่แล้ว

    Which recording software you use to highlight the section on the screen?

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Mac screen annotations

  • @sanatan8091
    @sanatan8091 ปีที่แล้ว

    can we post multiple records at once ? if yes, what is the syntax? pls help

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      Hi Sanatan,
      I will need clarity on what do you mean by multiple records. It will also depend on the API functionality, This may help:
      1. Open Postman and create a new request
      2. Select the POST method and enter the URL of the endpoint you want to post to
      3. In the request body, select the "raw" option and set the format to "JSON"
      4. Enter the array of objects in the following format:
      [
      {
      "name": "John Doe",
      "email": "john.doe@example.com"
      },
      {
      "name": "Jane Doe",
      "email": "jane.doe@example.com"
      }
      ]
      In this example, we have an array of two objects with the properties "name" and "email".
      Send the request and you should see the response with the data you posted
      Note that the specific syntax for posting multiple records at once may vary depending on the API you are working with. Be sure to consult the API documentation to determine the correct syntax for your use case.

  • @lokeshkumarverma5762
    @lokeshkumarverma5762 ปีที่แล้ว +1

    Please add Jmeter API videos. Thanks

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว +1

      Hi Lokesh, check this - th-cam.com/play/PLhW3qG5bs-L9sCVY1c_vox9blIrIzwEEb.html

  • @noorulainqadir9245
    @noorulainqadir9245 9 หลายเดือนก่อน

    Is there any testing api against which we can test post operation using jmeter?

    • @RaghavPal
      @RaghavPal  9 หลายเดือนก่อน

      Noor
      Yes, there are many testing APIs against which you can test POST operations using JMeter. Here are a few examples:
      *JSONPlaceholder:* This is a fake online REST API that you can use for testing purposes. It provides a variety of endpoints, including a POST endpoint that you can use to test POST operations.
      *SwaggerHub:* This is a platform for designing, developing, documenting, and consuming REST APIs. It provides a variety of features, including a testing environment that you can use to test POST operations.
      *Postman:* This is a popular tool for testing REST APIs. It provides a variety of features, including a POST endpoint that you can use to test POST operations.
      To test a POST operation using JMeter, you will need to create a HTTP Request sampler and configure it to send a POST request to the endpoint that you want to test. You can also use the HTTP Request sampler to set the body of the POST request.
      Here is an example of how to test a POST operation using JMeter:
      1. Create a new JMeter test plan.
      2. Add a HTTP Request sampler to the test plan.
      3. Configure the HTTP Request sampler to send a POST request to the endpoint that you want to test.
      4. Set the body of the POST request.
      5. Add a View Results Tree listener to the test plan.
      6. Run the test plan.
      JMeter will send a POST request to the endpoint that you specified in the HTTP Request sampler. The response from the endpoint will be displayed in the View Results Tree listener.
      You can use JMeter to assert the response from the endpoint. For example, you can use the JSON Path Extractor to extract a value from the response and then use the Assert Equals assertion to check that the value is correct.
      You can also use JMeter to test the performance of POST operations. For example, you can use the LoadRunner Performance Test Tool to generate a large number of POST requests and then use JMeter to measure the response times.
      I hope this helps!

    • @noorulainqadir9245
      @noorulainqadir9245 9 หลายเดือนก่อน

      Thankyou so much , it was really helpful@@RaghavPal

  • @punithkumar9255
    @punithkumar9255 4 หลายเดือนก่อน

    Hi sir, under Body -> we copied only name and job under request but in response we got id and createdAt as well. may we know the reason??

    • @RaghavPal
      @RaghavPal  4 หลายเดือนก่อน

      Punith
      that may be as per the API structure and functionality.. do now worry on that as these are demo APIs

  • @saran3410
    @saran3410 2 ปีที่แล้ว

    Please Explain Api testing in postman

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Sure, will find videos on that in this playlist, Can check here too - automationstepbystep.com/

  • @ammarsadeq6078
    @ammarsadeq6078 5 หลายเดือนก่อน

    What is this test that you do in the end. In general what is test for any initial request that we do (trying to understand the concept of test). Also it says Pass status code is 200 but we entered 201

    • @RaghavPal
      @RaghavPal  5 หลายเดือนก่อน

      Ammar
      When we create tests then it is checked against our expected outcome and accordingly fail or pass will be marked. The concept of Tests is there in the upcoming videos. Pls check

  • @vasanthkrishna7809
    @vasanthkrishna7809 ปีที่แล้ว +1

    Just wondering about this...when we try the 'Tests' with code '201'for posting the request, then it shows as passed under 'Test Results' tab but mentions status code is '200' when for 'POST' it's '201' ..

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว +2

      Hi Vasanth, you mean in the response it is showing code 200. For Post generally 201 should come, but 200 is also fine, it depends on the implementation.

    • @vasanthkrishna7809
      @vasanthkrishna7809 ปีที่แล้ว

      @@RaghavPal thanks for the reply 👍

  • @latinbishop1722
    @latinbishop1722 ปีที่แล้ว

    When i added the status code test it did not fail like yours did I exptected it to fail since script is looking for 200

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      Make sure you save after making changes and try again

  • @apnastylecooking2168
    @apnastylecooking2168 ปีที่แล้ว

    when I try to save the request it wants collection name too otherwise save button is not clickable.
    So need to create collection first?

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      Yes

    • @apnastylecooking2168
      @apnastylecooking2168 ปีที่แล้ว

      @@RaghavPal thanks for reply and that one is cleared in collection video too.

  • @goshar17
    @goshar17 10 หลายเดือนก่อน

    Where is the Get request you have created is it in this video?

    • @RaghavPal
      @RaghavPal  10 หลายเดือนก่อน

      Sharda, it will be in the earlier video. Please check the playlist here - automationstepbystep.com/

  • @latinbishop1722
    @latinbishop1722 ปีที่แล้ว

    trying to pass a single value no object example {"counties" : "county1", "county2"} is this possible

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      No, it is not possible to pass a single value as an object in JSON format in Postman API testing. In JSON format, an object is defined using a key-value pair, where the value can be another object, an array, or a scalar value.
      In your example, the value for the key "counties" is "county1", but the value for the key "county2" is missing. To represent multiple counties as a list or an array, you can modify your JSON object as follows:
      {
      "counties": [
      "county1",
      "county2"
      ]
      }
      This represents an object with a key "counties" whose value is an array of two string values, "county1" and "county2".
      Alternatively, if you only need to pass a single value, you can use a scalar value directly in the JSON object without defining it as an object or an array. For example:
      {
      "county": "county1"
      }
      This represents an object with a key "county" whose value is a string value "county1"

  • @itsme-vc8fs
    @itsme-vc8fs ปีที่แล้ว

    Sir need a session on snippets alone, pls make a video sir

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      I have tried to cover that part in test scripts, will try to add more

    • @itsme-vc8fs
      @itsme-vc8fs ปีที่แล้ว

      @@RaghavPal sir, thanks for ur quick response always, but by basic doubt to where can i learn complete validation coading part(i think assertions). We have a target to learn this by end of next week at the office, so struggling for the same. If you get some time please upload more information. Thanks alot sir

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      As of now, you can take help from official documentation of Postman and online resources

    • @itsme-vc8fs
      @itsme-vc8fs ปีที่แล้ว

      @@RaghavPal yes sir, trying the same

  • @nasarshaik115
    @nasarshaik115 2 ปีที่แล้ว

    Iam completed MBA can i go for devops side

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Yes, you can, Watch this - th-cam.com/video/KrVezx3E8OQ/w-d-xo.html

  • @402saravana4
    @402saravana4 ปีที่แล้ว

    Why is it not allowing to test a localhost api

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      may be some system, proxy or firewall issue

  • @wheelogger
    @wheelogger 4 หลายเดือนก่อน

    I am getting a 401 error, I have a htpps post service

    • @RaghavPal
      @RaghavPal  4 หลายเดือนก่อน

      A 401 error in Postman for an HTTPS POST service signifies an "Unauthorized" response from the server. This means the server didn't recognize or accept your authentication credentials. Here are some steps to troubleshoot:
      1. Verify Authentication details:
      Double-check: Ensure you've entered the correct username, password, API key, or token in the appropriate authorization section of the request.
      Case sensitivity: Pay attention to case sensitivity if passwords or tokens are case-sensitive.
      Token expiration: If using a token, verify its validity and refresh it if expired.
      2. Authorization type:
      Confirm the expected authorization type: Check the API documentation or consult with the API provider to confirm the required authorization method (Basic Auth, Bearer token, etc.).
      Correct placement: Ensure the authorization data is placed in the header, body, or URL parameters according to the API's guidelines.
      3. SSL certificate:
      Validity: For HTTPS requests, ensure the server's SSL certificate is valid and trusted by your system. Consider importing the certificate if self-signed.
      Postman settings: Check if Postman has specific settings related to SSL certificate verification.
      4. Network issues:
      Connectivity: Verify your internet connection is stable and accessible.
      Firewall restrictions: Temporarily disable any firewall or network security software that might be blocking the request.
      5. API documentation and support:
      Refer to the API documentation: Carefully review the documentation for specific authentication requirements and troubleshooting advice.
      Contact API provider: If you're unsure about the expected behavior or encounter specific error messages, reach out to the API provider for further assistance.

  • @amateur_football9751
    @amateur_football9751 10 หลายเดือนก่อน

    1-Less talk about other sites, the first minute is fill in material that could be showed as optional
    2-Use AI to produce voice, to make instruction material more understandable to people not used to your accent

    • @RaghavPal
      @RaghavPal  10 หลายเดือนก่อน

      I will work on this feedback. Thanks 😊