php-json-api
php-json-api copied to clipboard
JSON API transformer outputting valid (PSR-7) API Responses.
I have not seen that there is Authentication and authorizations for CRUD operations, do you plan to implement it?
I have domain model with `uuid` field and want use it as `id` value for API mapping. I put `uuid` to `getIdProperties`, it is work fine for set id and...
At https://github.com/nilportugues/php-json-api/blob/f72538b770f71c49fd75e4637d782edba1f5cbb9/src/Server/Data/DataAssertions.php#L38 , each request is validated to ensure it has an `attributes` member. However, the [JSON API spec](http://jsonapi.org/format/#document-resource-objects) says resource objects MAY contain an `attributes` member. There are cases...
This is part of a bigger work, the goal is to make attributes case configurable.
https://github.com/nilportugues/php-json-api/blob/master/src/Server/Data/DataObject.php#L51 While testing some stuff out in the Laravel wrapper, I realized that you can trigger an exception here by setting the type to `text` instead of a JSON request....
Given two DTO's (Identity and Preference) where Identity has a hidden field passwordHash. I noticed that when I serialize the Identity DTO the passwordHash field is correctly hidden. But when...
I see this library supports doctrine entities as input to the serialiser. ``` https://github.com/nilportugues/php-json-api/blob/aa305a4ea7a9aef0be3cf243c1e2cf3c9efb3411/tests/Integrations/Doctrine/DoctrineTest.php ``` That example works without relationships. It seems I get into an infinite loop when I...
Support "relationships" in resource creation like shown here: http://jsonapi.org/format/#crud-creating
Some parameters could: - be null - have default value - be set by client or counted by server (like nickname from first name, last name and year of birth)
According to the JSON recommendation (http://jsonapi.org/recommendations/#naming) the preferred naming convention is to use hyphens to separate words in keys, eg 'modified-date'. Current implementation of the library has a dependency on...