No matter how I format the raw portion of this request, I cannot avoid the parsing error below.
I have a Rails API with a create method that passes the spec, to illu
Like @Tejas Patel said it's all about headers. But instead of setting them explicitly you can just:
In the request creation area switch to the body tab. Set raw radio button. In the lower text area input your body:
{
"power_up": {
"name": "foo",
"description": "bar"
}
}
Then in a dropdown list to the rigth choose JSON (application/json) option instead of the default Text option. That will auto-set the required headers. That's it - you can press "Send" button.