Skip to content
Permalink
Browse files
added postman images
  • Loading branch information
aa7401 committed Oct 18, 2018
1 parent 3ac2c26 commit 852785c44427d7ed051edaad550c8377bff43d3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
@@ -28,9 +28,13 @@ Install the [Postman](https://www.getpostman.com) software and launch. Now start

### Adding Items

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 request **Body** tab enter the required data as a JSON string. 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. 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.
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](images/postman_post.png)
![the Postman tool](exercises/.images/postman_headers.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)

You have added a new resource to the **items** collection. Try adding a few other items.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 852785c

Please sign in to comment.