1 / 18 · Book 14 · Exercises⊞ allnext →Get the book →
1.1Beginner
Exercise 1: Import the JSONPlaceholder API (https://jsonplaceholder.typicode.com) into Postman. Create requests for GET /posts, GET /posts/1, and POST /posts. Write test scripts that verify the status code for each request.
Exercise 2: Create two environments in Postman -- "JSONPlaceholder" and "Local Dev." Set the base_url variable appropriately for each. Verify that switching environments changes the target server for all requests.