Task 1: Call API with Postman
Goal | Call Juice Shop API with Postman |
Task | Configure Postman and GET information about Apple Juice from the product page |
Verify task completion | The Postman Request should successfully return data for the Apple Juice product |
- Open postman by opening a new terminal (not bash) and type
Postman
at the prompt. This should start the postman application.WarningIf Postman doesn’t open, it’s likely due to the terminal still using Bash. To exit bash, simply type
sh
Now, let’s make an HTTP GET API call to search for Apple Juice. Use the following URL, ensuring you replace your studentID.
https://<studentID>.fwebtraincse.com/rest/products/search?q=Apple
Warning