How to send post request to the below post method using postman rest client

postman post request with parameters
postman post request body example
how to add post request in postman collection
how to use postman for post request
how to send post request to rest api
postman post request body json
postman post json object example
how to make a post request to an api

I just want to know, how to send JSON object to createTrackInJSON(Track track) method, with @Post annotation through postman rest client. here,how to pass JSON object to createTrackInJSON(Track track) method,with @Post annotation ?


import com.mkyong.Track;

public class JSONService {

    public Track getTrackInJSON() {

        Track track = new Track();
        track.setTitle("Enter Sandman");
        System.out.println("inside get method . . .");
        return track;


    public Response createTrackInJSON(Track track) {
        System.out.println("inside post method . .");
        String result = "Track saved : " + track;
        return Response.status(201).entity(result).build();



//Track class is:

public class Track {
String title;
String singer;

public String getTitle() {
    return title;

public void setTitle(String title) {
    this.title = title;

public String getSinger() {
    return singer;

public void setSinger(String singer) {
    this.singer = singer;

public String toString() {
    return "Track [title=" + title + ", singer=" + singer + "]";

  1. Open Postman.
  2. Enter URL in the URL bar http://{server:port}/json/metallica/post.
  3. Click Headers button and enter Content-Type as header and application/json in value.
  4. Select POST from the dropdown next to the URL text box.
  5. Select raw from the buttons available below URL text box.
  6. Select JSON from the following dropdown.
  7. In the textarea available below, post your request object:

     "title" : "test title",
     "singer" : "some singer"
  8. Hit Send.

  9. Refer to screenshot below:

How to make a POST Request in Postman, How to send Request Body in Post method in Postman. Use the API http:// (This API is used for registering a new 3 . See the response below under Body tab and focus on fault error. As you will follow these steps, you will learn in detail about it. 1.Select the method request type as POST in the builder as shown. As soon as you select the POST request type in Postman you will see that the option Body is enabled which has different options to send the data inside the body. These options are:


For POST request using json object it can be configured by selecting

Body -> raw -> application/json

Form Data(For Normal content POST):- multipart/form-data

For normal POST request (using multipart/form-data) it can be configured by selecting

Body -> form-data

POST request with Postman, Creating a POST request using postman is quite easy and I will guide you through the process Duration: 15:20 Posted: May 31, 2018 I just want to know, how to send JSON object to createTrackInJSON(Track track) method, with @Post annotation through postman rest client. here,how to pass JSON object to createTrackInJSON(Track tr

The Interface of Postman is changing acccording to the updates.

So You can get full information about postman can get Here.

Building requests, POST sends new data to an API. PATCH and PUT methods update existing data. DELETE removes existing data. In Postman you can make API requests and� For example, if you're sending a request to add a new customer to a database, you might include the customer details in JSON. Typically you will use body data with PUT, POST, and PATCH requests. The Body tab in Postman allows you to specify the data you need to send with a request. You can send various different types of body data to suit your API.

I had same issue . I passed my data as key->value in "Body" section by choosing "form-data" option and it worked fine.

Sending your first request, The most common HTTP verbs are GET and POST. A PUT request contains a new version of the existing resource In Postman, change the method next to the URL to 'POST', and under and you want the rest of it to remain untouched, you can use PATCH. JavaScript � Restful Api � Web Development� POST is one of the most common methods of HTTP which is used to send data to a server to create/update the resource.Data sent to the server is in the form of either Request Body / Request Parameters which is basically used to create or update the resource on the server.

1.Open postman app 2.Enter the URL in the URL bar in postman app along with the name of the design.Use slash(/) after URL to give the design name. 3.Select POST from the dropdown list from URL textbox. 4.Select raw from buttons available below the URL textbox. 5.Select JSON from the dropdown. 6.In the text area enter your data to be updated and enter send. 7.Select GET from dropdown list from URL textbox and enter send to see the updated result.

A pithy perusal of POST, PUT, and PATCH | by Jason Arnold, Now we will send a POST request with some data. In this case we will create a new player using the Player Management API. request steps above, but now choose POST to be the selected HTTP method. Post Request POST Request; Click the Body tab just under the URL, then choose� Send any type of request in Postman. Create and save custom methods and send requests with the following body types: URL-encoded—The default content type for sending simple text data. Multipart/form-data—For sending large quantities of binary data or text containing non-ASCII characters. Raw body editing—For sending data without any encoding

Use Postman for API Requests, With a GUI REST client, you won't have to worry about getting curl syntax right and analyzing So if it seems like I'm glossing over concepts now, such as what a GET method is or an endpoint, hang in there. Saved requests appear in the left side pane under Collections. Clara� I am using postman packaged app to send a post request. I am using postman packaged app to send a post request. In case of simple example if your api is below

Submit requests through Postman, Postman - Rest Client is a best google chrome app to test your REST aware how to test API using POSTMAN, you can read the below docs. Now to post JSON data,. First type URL of the API; Change method type to POST; In paramter Now click on "send", you will find that your request now received the� Step 4) Go back to the previous Get request. Click Save . Step 5) Select Postman Test Collection. Click Save to Postman Test Collection; Step 6) Postman test collection should now contain one request. Step 7) Repeat steps 4-5 for the previous Post request so that collection will now have two requests. How to Run Collections using Collection Runner

How to post JSON data in Postman -REST Client Chrome, POST Request in Postman with Sending API Requests, Collections, The POST request is a fundamental method, and this method is mostly used when a user Just change the attribute value to the required value, like the below example:. If you need the text/xml header, you will need to override the default setting added by Postman. Deselect the Content-Type header Postman added automatically and add a new row with Content-Type Key and text/xml Value. Send your request. Click Send to make your call to the SOAP service. If your call is successful you will see the response in the lower tab in Postman.