Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Conversation

f3ath
Copy link
Contributor

@f3ath f3ath commented Mar 8, 2017

I just feel it has to be somewhere in the library. If you're OK with this PR, please guide me on how you want the copyright notice to look like in new files.

@franzliedke
Copy link
Contributor

👍

@tobyzerner
Copy link
Owner

tobyzerner commented Mar 8, 2017

Good thinking. My only question is the naming/location? eg, should it be MEDIA_TYPE? From the spec:

JSON API requires use of the JSON API media type (application/vnd.api+json) for exchanging data.

and links to http://www.iana.org/assignments/media-types/application/vnd.api+json

Furthermore, do we need a new class for this or would it make sense to put it in the Document class, eg,

return new Response((string) $document, 200, ['content-type' => $document::MEDIA_TYPE]);

@f3ath f3ath mentioned this pull request Mar 8, 2017
@f3ath f3ath closed this Mar 8, 2017
tobyzerner pushed a commit that referenced this pull request Mar 9, 2017
* Document:MEDIA_TYPE

As proposed in the comments to #117

* Update Document.php
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants