phoenix_integration
phoenix_integration copied to clipboard
Parsing JSON response from "application/vnd.api+json" content type responses
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.
Hmmm. Could add a new content type. How about
assert_response(json_api: "...")?