Challenge: Testing APIs
Practice writing and running the Credit-Check Postman test collection.
Exercise
For this exercise, you’re required to create a Postman test collection for the Credit-Check API we built previously. After creating a new collection and adding both happy- and sad-path tests, run them to validate the API.
Write the Credit-Check Postman test collection
First, fire up the Postman client and create a new collection called “Credit-Check”. Then create the following two test entries:
Happy-path: Test the home
resource
- Request URL:
http://localhost:8181/