phoenix_integration icon indicating copy to clipboard operation
phoenix_integration copied to clipboard

Parsing JSON response from "application/vnd.api+json" content type responses

Open jaimeiniesta opened this issue 4 years ago • 1 comments

Hi, I have a JSON API implemented with ja_serializer that uses the content-type "application/vnd.api+json" as in the JSON:API spec.

Is there a way to make this work with phoenix_integration so I can use asserts like assert_response(json: "...")?

Currently this fails as it expects a content type of application/json.

jaimeiniesta avatar Nov 02 '21 12:11 jaimeiniesta

Hmmm. Could add a new content type. How about assert_response(json_api: "...")?

boydm avatar Jan 24 '22 21:01 boydm