diff --git a/02 Lab 2 TDD API.md b/02 Lab 2 TDD API.md index 69828a3..040fb91 100644 --- a/02 Lab 2 TDD API.md +++ b/02 Lab 2 TDD API.md @@ -30,11 +30,11 @@ Install the [Postman](https://www.getpostman.com) software and launch. Now start To add items to a collection we need to use the **POST** method, specifying the data in the request body. In postman, select the **POST** method from the dropdown list and enter the collection URL to the right of this as shown below. In the **Headers** tab create a new header called `Content-Type` with a value of `application/json` to let the API know your data is in the JSON format. -![the Postman tool](exercises/.images/postman_headers.png) +![the Postman tool](exercises/.images/postman_body.png) In the request **Body** tab enter the required data as a JSON string. If you click on the **Send** button your request will be sent to the API and you should see some data in the _response body_ tab as shown below. Finally click on the blue **Send** button to send the HTTP request to the API. -![the Postman tool](exercises/.images/postman_body.png) +![the Postman tool](exercises/.images/postman_headers.png) You have added a new resource to the **items** collection. Try adding a few other items.