Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending json api object using postman

I am using JSONAPI Specification http://jsonapi.org/format/#status

And I have data like below,

{
  "data": 
    {
    "type": "tag",
    "id": "1",
    "attributes": {
        "name": "Test"
    }
  }
}

How do I make a post request to the end point using postman chrome extension ?

I am trying to make a call but I cannot get the params.

Obs. I already set my Content-Type as application/vnd.api+json

Thanks !

valid HTML

like image 261
Mauricio Junior Avatar asked Mar 24 '17 14:03

Mauricio Junior


1 Answers

Select

METHOD POST

Then under Body chose raw

here is a screenshot

enter image description hereon/json

like image 191
Confidence Avatar answered Oct 03 '22 21:10

Confidence