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
,MetaInterface
orResource\ItemInterface
- BREAKING: object
PaginationLink
was 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\Manager
andUtils\Factory
for injecting own classes into the client - Every object inside the document implements
AccessInterface
AccessInterface
supportsasArray()
for transforming an object into an array- Added a
Resource\IdentifierCollection
that is either empty or holds onlyResource\Identifier
objects Relationship::get('data')
returns aResource\IdentifierCollection
object instead of an array- 100% test coverage
0.3
Document::get('data')
returns always aResourceInterface
objectDocument::get('error')
returns aErrorCollection
objectDocument::get('included')
returns aResource\Collection
object\Art4\JsonApiClient\Exception\ValidationException
will be thrown instead ofInvalidArgumentException
\Art4\JsonApiClient\Exception\AccessException
will be thrown instead ofRuntimetException
- Added better documentation