Releases: Art4/json-api-client
Releases · Art4/json-api-client
0.8
- New method Utils\Helper::parseRequestBody() to parse JSON API with optional item id
- Support for PHP 7.1
- BREAKING: New method Utils\ManagerInterface::getConfig() to get a config value
- BREAKING: New method Utils\ManagerInterface::setConfig() to set a config value
- BREAKING: Drop support for PHP 5.4
You can find more details in the CHANGELOG.md
0.7
- Update license to GPL3
- BREAKING: Rename all resource namespaces
You can find more details in the CHANGELOG.md
0.6.3
0.6.2
0.6.1
0.6
0.5
- Added dot-notation support in
AccessInterface::has()andAccessInterface::get() - every object has now his own interface, eg.
DocumentInterface,MetaInterfaceorResource\ItemInterface - BREAKING: object
PaginationLinkwas renamed toPagination - BREAKING: nearly all classes was set to final and can't be extended anymore. Implement the new interfaces instead. See also #18.
0.4
- Introduce
Utils\ManagerandUtils\Factoryfor injecting own classes into the client - Every object inside the document implements
AccessInterface AccessInterfacesupportsasArray()for transforming an object into an array- Added a
Resource\IdentifierCollectionthat is either empty or holds onlyResource\Identifierobjects Relationship::get('data')returns aResource\IdentifierCollectionobject instead of an array- 100% test coverage
0.3
Document::get('data')returns always aResourceInterfaceobjectDocument::get('error')returns aErrorCollectionobjectDocument::get('included')returns aResource\Collectionobject\Art4\JsonApiClient\Exception\ValidationExceptionwill be thrown instead ofInvalidArgumentException\Art4\JsonApiClient\Exception\AccessExceptionwill be thrown instead ofRuntimetException- Added better documentation