jsonapi icon indicating copy to clipboard operation
jsonapi copied to clipboard

Human-friendly library to implement JSON:API without needing to know the specification.

Results 12 jsonapi issues
Sort by recently updated
recently updated
newest added

- [ ] add `getAttributes()` - [ ] add `getRelationships()`

Next to parsing (https://github.com/lode/jsonapi/issues/44) there's a lot of validation to do around query parameters. Mainly around which are supported by the server.

Next to parsing (https://github.com/lode/jsonapi/issues/5) there's a lot of validation to do around the document structure. And optionally also about which values are understood.

It would be nice to do something like this: ``` php $results = 'mysqli_query() + fetch_assoc() while-loop'; $jsonapi = new jsonapi\collection($type='users'); $jsonapi->import_from_array($results); ``` And maybe a way to split keys...

enhancement

Following the discussion in https://github.com/json-api/json-api/pull/1532.

Following the discussion in https://github.com/json-api/json-api/issues/1514

I find myself writing a lot of `$param = $request->hasAttribute('name') ? $request->getAttribute('name') : null;` Would you consider adding this feature?