Sending json api object using postman

末鹿安然 提交于 2021-02-04 15:00:27

问题


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


回答1:


Select

METHOD POST

Then under Body chose raw

here is a screenshot

on/json



来源:https://stackoverflow.com/questions/43002142/sending-json-api-object-using-postman

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!