- Ran PHP-CS-Fixer on code to update to PSR-2 standards
- fixed bug preventing type property from being returned
- Updated error response to include HTTP status code
- Updated phpunit tests
- Updated HTTP status returned from some exceptions to better match specs.
- Updated readme and composer.json
- Added pagination support
- Made linked resources include type property
- Updated code and docs for basic support for jsonapi 1.0.0.rc2 specs
- Updated support for sorting to allow for multiple items and ascending/descending specifications
- Added validation of POST/PUT data
- Updated code and docs to support laravel 5.0
- Added basic support for sorting and filtering
- Updated POST response to return code 201 as specified in jsonapi specs
- Added the ability to pass additional attributes to an ErrorResponse
- Added default value to
$guarded
on Model - Added the ability to pass JSON encode options to
toJsonResponse
- Fixed a bug where linked resources would not be associated to requested models
- Implemented proper response codes for various HTTP methods as required by jsonapi.org spec
- Added a
ERROR_MISSING_DATA
constant toHandler
for generic use where insufficient data was provided
- Fix a bug which caused One-to-One relations not to work
- Improved handling of linked resources to never include other than the requested
- Bugfixes
- Add ability to pass additional error details (or attributes) through an
Exception
- Fix a bug which caused linked models to not be correctly included
- Fix a mistake in phpDoc block
- Fix a bug which caused the handler not to expose models from a has-many relationship
- Ensure that toMany relations are presented on the entity with a plural key name
- Add the ability to map a relation name to a non-default key when serializing linked objects
- Add workaround for loading of nested relationships, see commit for details
- Fix a bug with previous update