eosnewmedia / JSON-API-Common

Basic php implementation (shared structures for client and server) of the json api specification (jsonapi.org)
https://eosnewmedia.github.io/JSON-API-Common/
MIT License
14 stars 13 forks source link

CreatedResponse does not return document #11

Closed OndraM closed 6 years ago

OndraM commented 6 years ago

Hi, CreatedResponse does not return Document data (only Location header).

However the spec states about HTTP 201 Created response this:

The response MUST also include a document that contains the primary resource created.

So is this a bug?

bogomolov-dev commented 6 years ago

Hi @OndraM , yes it is.

pmarien commented 6 years ago

fixed without api break (document as third optional constructor parameter) in 3.1.1