Closed nilportugues closed 9 years ago
Actually only JSONAPI and HALJSON serializer are meant to support these, but JSON could support it too by adding a meta attribute holding these.
meta
$serializer->setSelfUrl('http://example.com/posts/9'); $serializer->setNextUrl('http://example.com/posts/10'); $serializer->addMeta( 'author', [ ['name' => 'Nil Portugués Calderó', 'email' => 'contact@nilportugues.com'] ] );
Fixed in https://github.com/nilportugues/json-api-transformers/commit/43dbe7db29caa567369ecf94e6d1ce0900afb47c
Actually only JSONAPI and HALJSON serializer are meant to support these, but JSON could support it too by adding a
meta
attribute holding these.