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
Sorry bit too late to answer this but might help someone else.
All you need to do is -
in your request header (in postman or whatever client) add
Content-Type = 'application/json'
Alternatively, you can also try it with curl (source):
curl -X POST -H "Content-Type: application/json" -d '{"power_up": {
"name": "foo",
"description": "bar"
}
}' 127.0.01:3000/v1/power_ups.json