Changelog
3.2.0
- added “merge” to resource collections
- added “merge” to relationship collections
- added “merge” to link collections
3.1.2
- Request: define array properties default as empty array
3.1.1
- merged “Fix relationships URL”
- merged “Declare public constant for json api Content-Type”
- fixed #11 (“CreatedResponse does not return document”)
3.1.0
- merged “added \Countable interface to collections”
3.0.1
- ignore case match for simple collection keys
- ad content type header as default for requests
Version 3.0.0
- moved core logic from json api server library to this library
- simplified most interfaces
- better control for responses
- same requests and responses on client and server side
- moved object-resource mappers to this library
- removed (mostly) unused features like factories and
JsonApiInterface
- removed
JsonApiAwareInterface
, use JsonApiTrait
directly instead
- simplified
JsonApiTrait
- moved pagination to this library but not with traits and interfaces but wih document extensions
Version 2.4.0
- allow relative url’s in links
Version 2.3.0
- added
SaveRequest
to save multiple resources at one when manipulating relationships
Version 2.2.0
- added method
source
to ErrorInterface
and use it in Serializer
Version 2.1.0
- added
RelatedMetaInformationInterface
- added
RelatedMetaInformationTrait
- improved
Serializer
to ignore empty data if links or meta are provided by a relationship
- improved
Serializer
to write meta information into resource identifier objects
- added option “keepEmptyData” to
Serializer
Version 2.0.0
Model changes:
- renamed all occurrences of method “metaInformations” to “metaInformation”
- renamed method
ResourceInterface::getType()
to ResourceInterface::type()
- renamed method
ResourceInterface::getId()
to ResourceInterface::id()
- renamed method
RelationshipInterface::getType()
to RelationshipInterface::type()
- renamed method
RelationshipInterface::getName()
to RelationshipInterface::name()
- renamed method
LinkInterface::getType()
to LinkInterface::type()
- renamed method
LinkInterface::getName()
to LinkInterface::name()
- renamed method
ErrorInterface::getStatus()
to LinkInterface::status()
- renamed method
ErrorInterface::getCode()
to LinkInterface::code()
- renamed method
ErrorInterface::getTitle()
to LinkInterface::title()
- renamed method
ErrorInterface::getDetail()
to LinkInterface::detail()
- added method “createLink” to
LinkCollectionInterface
- removed method “getType”, which was only relevant for serializer, from
DocumentInterface
- added method “httpStatus” to
DocumentInterface
- added method “withHttpStatus” to
DocumentInterface
, to modify the status of a document
- added method “shouldBeHandledAsCollection”, which indicates if a document contains a collection or not, to
DocumentInterface
- added method “jsonApi”, which contains information about the version, to
DocumentInterface
- added model class
Document
as default implementation of DocumentInterface
- removed class
AbstractDocument
(use Document
instead)
- removed class
ResourceDocument
(use Document
instead)
- removed class
ResourceCollectionDocument
(use Document
instead)
- removed class
RelationshipDocument
(use Document
instead)
- removed class
RelationshipCollectionDocument
(use Document
instead)
- removed class
ErrorDocument
(use Document
instead)
- added interface
JsonApiInterface
for information about the used version in documents
- added model class
JsonApi
as default implementation of JsonApiInterface
for information about the used version in documents
- added interface
DocumentFactoryInterface
and class DocumentFactory
- added interface
ResourceFactoryInterface
and class ResourceFactory
- added class
ResourceFactoryRegistry
- added interface
RelationshipFactoryInterface
and class RelationshipFactory
- added interface
FetchRequestInterface
- added class
FetchRequest
- added interface
JsonApiRequestInterface
- added class
JsonApiRequest
- added interface
SaveRequestInterface
- added class
RelationshipModificationRequest
- added class
SaveSingleResourceRequest
Serializer changes:
- added argument “identifiersOnly” as second argument of
DocumentSerializerInterface::serializeDocument
- added the key “jsonapi” to output of
Serializer::serializeDocument
- added interface
DocumentDeserializerInterface
- added class
Deserializer
as default implementation of DocumentDeserializerInterface
new in 2.0.0
- added
JsonApiInterface
and JsonApiTrait
- added interface
JsonApiAwareInterface
and trait JsonApiAwareTrait