json-api-server
json-api-server copied to clipboard
Set up a JSON API in Laravel in just a few minutes.
During feature test, when I'm trying to send multiple requests to show function (BaseApiController), all requests after first one fails in findById function (BaseApiRepository). I figured out that query builder...
When i validating fields with validateObject function, i get error response like: ``` { "message": "The given data was invalid.", "errors": { "status": [ "The status field is required." ],...
https://github.com/swisnl/json-api-server/blob/77951ec882d534e6a4b529002afa5bfb01ebc364/src/Http/Resources/BaseApiCollectionResource.php#L34 https://github.com/swisnl/json-api-server/blob/77951ec882d534e6a4b529002afa5bfb01ebc364/src/Http/Resources/BaseApiResource.php#L227 Currently not possible to add included relations by default. Say I have an order object and by default I want to load all its items, currently this is...
Currently ordering is done with `order_by_asc` and `order_by_desc`, this should use: `order=title` and `order=-title` as specified in the specification. See http://jsonapi.org/format/#fetching-sorting