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

  Рет қаралды 29,460

Valentin Despa

Valentin Despa

Күн бұрын

This video is a quick introduction to APIs and Postman in just 25 minutes. I will briefly explain what an API is and how you can call (aka consume) an API with Postman.
You will learn about the HTTP request methods (also known as HTTP verbs) like GET, POST, DELETE and how to send a JSON request body.
Download Postman at getpostman.com
API Documentation (with Swagger):
pizzeria-valentino.herokuapp....
___
// POSTMAN COMPLETE GUIDE ONLINE COURSE
👉 Want to learn more about Postman? Check my Postman online course.
Get it at a special price and help support this KZfaq channel:
www.udemy.com/course/postman-...
___
// I HAVE A QUESTION!
I do my best to answer all comments here on KZfaq but I cannot make any guarantees.
If you have a question, it is best to ask your question on the Postman User Group on Facebook or on the Postman Community (links below).
If you have purchased the Postman Online Course, please use the Q&A section or send me a message on Udemy.
Please do not email me or contact me on other channels as I might not be able to answer. Sorry!
___
// I HAVE A VIDEO IDEA
Do you want me to create a video on a specific topic? Just fill out the form below:
forms.gle/uWEzXFQ2viJtZtvZ7
___
// P L A Y L I S T S
▸ Learn Postman | bit.ly/2CFaf70
▸ Postman Crash Course | bit.ly/2YwEBBT
▸ Postman Tips & Tricks | bit.ly/2JLkXyU
___
// F R E E R E S O U R C E S
▸▸▸ DOWNLOAD the FREE Postman Quick Reference Guide
bit.ly/postman-quick-reference-yt
▸▸▸ JOIN the Postman User Group on Facebook
bit.ly/2OutAMZ
▸▸▸ The OFFICIAL Postman community forum
community.getpostman.com/
▸▸▸ 👉 Subscribe to the "Testing and automation with Valentine" newsletter for bi-weekly tutorials, tips, and news from the industry.
eepurl.com/gPwpU1
___
// YOUR SUPPORT ON PATREON MATTERS
If you enjoy this content, help me create more like this. Consider supporting me on Patreon.
/ vdespa
___
// IMPRINT
vdespa.com/imprint
---

Пікірлер: 41
@vdespa
@vdespa 4 жыл бұрын
👉 Want to learn more about Postman? Check my Postman online course. www.udemy.com/course/postman-the-complete-guide/?referralCode=4E8B90BA4B5EE8DA9237
@ajlozadaro
@ajlozadaro 3 жыл бұрын
It is the cleanest, most professional and clearest video I have seen so far. I congratulate you for the contribution.
@vdespa
@vdespa 3 жыл бұрын
Wow, thank you!
@utube2008utube
@utube2008utube 4 жыл бұрын
Great video! Very helpful. Thanks for posting.
@vdespa
@vdespa 4 жыл бұрын
Thanks for watching!
@myself047
@myself047 2 жыл бұрын
One hell of an tutorial. Thank You, means a lot.
@vdespa
@vdespa 2 жыл бұрын
You are welcome. Thank you for leaving a comment.
@jplobianco
@jplobianco 4 жыл бұрын
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 жыл бұрын
Thank you, this helped alot! Great tutorial :)
@vdespa
@vdespa 4 жыл бұрын
I am glad, thank you for letting me know.
@AiryFake
@AiryFake 4 жыл бұрын
I love the cat notes :) And the tutorials are very interesting..!
@vdespa
@vdespa 4 жыл бұрын
Glad you like them! ;)
@nargizreza1541
@nargizreza1541 4 жыл бұрын
I appreciate you for work you have done
@vdespa
@vdespa 4 жыл бұрын
Thank you very much!
@martinvanek1305
@martinvanek1305 2 жыл бұрын
Awesome! thank you very very much! Pressing subscribe :)
@vdespa
@vdespa 2 жыл бұрын
You are welcome. Thank you for leaving a comment.
@staulik
@staulik Жыл бұрын
Your class is awesome, by the way: what about send-me that shirt? lol
@vdespa
@vdespa Жыл бұрын
You are welcome. Thank you for leaving a comment.
@CharuMaheshwari-yf8mo
@CharuMaheshwari-yf8mo Жыл бұрын
awesome tutorial
@vdespa
@vdespa Жыл бұрын
You are welcome. Thank you for leaving a comment.
@gdd546
@gdd546 4 жыл бұрын
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.
@amanpathania
@amanpathania 2 жыл бұрын
@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 2 жыл бұрын
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.
@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?
@meghasandesam
@meghasandesam 4 жыл бұрын
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 жыл бұрын
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/
@kamalkaur1479
@kamalkaur1479 2 жыл бұрын
Hi, I want to learn API with PostMan
@vdespa
@vdespa 2 жыл бұрын
Begin here: kzfaq.info/get/bejne/jN-nq6yCl8C8p2g.html
@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.
Data-driven testing using Postman
13:37
Valentin Despa
Рет қаралды 58 М.
Run Postman Collections in Jenkins with Newman
35:35
Valentin Despa
Рет қаралды 20 М.
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 29 МЛН
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 5 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН
copilot, what the s-
0:06
Diploduckus
Рет қаралды 2
Introduction to the ChatGPT API with Postman
14:06
Valentin Despa
Рет қаралды 18 М.
How write API Tests with Postman in 3 easy steps (PART 2/3)
15:59
Valentin Despa
Рет қаралды 30 М.
REST API Crash Course - Introduction + Full Python API Tutorial
51:57
Postman Tutorial #7 - HTTP Methods GET and POST in Postman
13:18
Software Testing Mentor
Рет қаралды 43 М.
Avoid these 10 Beginner Mistakes in Postman
9:10
Valentin Despa
Рет қаралды 9 М.
Loop request based on data from response in Postman
13:13
Valentin Despa
Рет қаралды 58 М.
How write API Tests with Postman in 3 easy steps
18:49
Valentin Despa
Рет қаралды 162 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,1 МЛН