json-api-server icon indicating copy to clipboard operation
json-api-server copied to clipboard

A JSON:API server implementation in PHP.

Results 18 json-api-server issues
Sort by recently updated
recently updated
newest added

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.4 to 5.2.8. Release notes Sourced from vite's releases. [email protected] Please refer to CHANGELOG.md for details. [email protected] Please refer to CHANGELOG.md for details. [email protected] Please refer to...

dependencies

As per https://jsonapi.org/format/#fetching-resources: > The following request fetches an article’s author: ```http GET /articles/1/author HTTP/1.1 Accept: application/vnd.api+json ``` These URLs can be implemented automatically as part of the `Show` endpoint....

enhancement

Error titles/descriptions/codes need to be translatable

enhancement

As per: https://jsonapi.org/format/#fetching-relationships https://jsonapi.org/format/#crud-updating-relationships These can be handled automatically via the `Update` endpoint. PATCH: $resource->setValue(...) POST: $resource->attach($model, $field, $related) DELETE: $resource->detach(...)

enhancement

As per https://jsonapi.org/format/#crud-creating-client-ids

enhancement

As per: https://jsonapi.org/format/#crud-creating-responses-202 https://jsonapi.org/format/#crud-updating-responses-202 https://jsonapi.org/format/#crud-deleting-responses-202 https://jsonapi.org/recommendations/#asynchronous-processing ```php class PhotosResource implements Creatable { public function create(object $model, Context $context) { $job = dispatch_create_job($model); return new Tobyz\JsonApi\Endpoint\Status\Accepted('queue-jobs', $job); } } class QueueJobsResource...

enhancement

eg. pivot timestamps/data ```php ToMany::make('roles') // meta on the relationship object // $context->model is still the parent model ->meta([ Meta::make('foo')->get('bar'), ]) // meta on linkage resource identifier objects // $context->model...

enhancement

https://jsonapi.org/profiles/ethanresnick/cursor-pagination/ Will look something like: ```php Endpoint\Index::make()->cursorPaginate(); interface CursorPaginatable { public function cursorPaginate(object $query, CursorPagination $pagination); public function cursor(object $model, array $parameters): string; } ```

enhancement
profile

Hello 👋, I have been manually creating a JSON:API implementation and while I think we've been doing a good job there has been mistakes along the way. When looking at...

enhancement