Summary
Keywords
Full Transcript
Learn API Testing with a real-world mini project using Postman. In this session, you will learn how authentication works in APIs and how to test Login APIs, handle tokens and access secure endpoints step-by-step using a real working API. ▬▬▬▬▬▬▬ 🎯 What you will learn in this session: • How Login APIs work • What is Authentication and Authorization • How to send Login request in Postman • How to extract token from response • How to store token in environment variables • How to use Bearer Token in headers • How to test secure APIs • How to write basic test scripts • How to validate API responses ▬▬▬▬▬▬▬ ⏱ Timestamps 00:00 Introduction 01:02 Step 1 - Create Environment - Add variable base_url = https://dummyjson.com 03:48 Step 2 - Create Collection - Ecommerce API Project 04:37 Step 3 - Add Request - LOGIN API- POST {{base_url}}/auth/login 07:57 Step 4 - Add scripts to extract token from response 11:07 Step 5 - Add Request - GET USER PROFILE - GET {{base_url}}/auth/me 12:54 Step 6 - Add Header - Authorization: Bearer {{token}} Can add tests 14:16 Step 7 - Add Request - GET PRODUCTS GET {{base_url}}/products Can add tests 15:48 Step 8 - Save Product Id for next requests 20:37 Summary QUIZ - https://forms.gle/tzB6ij1681xF5jkj6 Let me know your score in the comments ▬▬▬▬▬▬▬ 🧪 Hands-on Practice Login API: POST https://dummyjson.com/auth/login Body: { "username": "kminchelle", "password": "0lelplR" } Secure API: GET https://dummyjson.com/auth/me Header: Authorization: Bearer {{token}} ▬▬▬▬▬▬▬ LEARN & PRACTICE ▬▬▬▬▬▬▬ 🧪 Practice API: https://dummyjson.com/docs/auth 📄 Postman Docs: https://learning.postman.com/docs/getting-started/introduction/ ▬▬▬▬▬▬▬ Explore all my tutorials across testing, automation and DevOps below: ▬▬▬▬ ALL TUTORIALS ▬▬▬▬ ✅ https://AutomationStepByStep.com/ ▬▬▬▬▬▬▬ If this video helps you, please share with all who may need this. If my work has helped you, consider helping any animal near you in any way you can. Never Stop Learning Raghav Pal ▬▬▬▬▬▬▬ postman login api tutorial postman authentication testing postman bearer token example api testing with token postman real project tutorial learn api testing with project postman beginner project postman auth flow #postman #apitesting #postmantutorial #authentication #restapi
