Download the PHP package enm/json-api-server-bundle without Composer
On this page you can find all versions of the php package enm/json-api-server-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download enm/json-api-server-bundle
More information about enm/json-api-server-bundle
Files in enm/json-api-server-bundle
Package json-api-server-bundle
Short Description Symfony integration of enm/json-api-server
License MIT
Informations about the package json-api-server-bundle
JSON API Server-Bundle
The symfony integration for enm/json-api-server
.
Installation
composer require enm/json-api-server-bundle
Documentation
You should read the docs of enm/json-api-server
first,
since this bundle only integrate its functionalities into your symfony project.
- Configuration
- Bundles
- Config
- Routing
- Request Handler
- Error Handling
Configuration
Bundles
Config
All bundle configurations are optional.
Routing
If you use the predefined routing (without api prefix configuration), the following routes will be matched:
GET /{type}
GET /{type}/{id}
GET /{type}/{id}/relationships/{relationship}
GET /{type}/{id}/{relationship}
POST /{type}
PATCH /{type}/{id}
DELETE /{type}/{id}
POST /{type}/{id}/relationships/{relationship}
PATCH /{type}/{id}/relationships/{relationship}
DELETE /{type}/{id}/relationships/{relationship}
Request Handler
Each request handler can simply be registered via the service container (tag: json_api_server.request_handler
):
The tag attribute type
must contain the json api resource type which will be handled by this request handler.
Error Handling
The bundle will handle all exceptions and convert them to valid json api error responses.
All versions of json-api-server-bundle with dependencies
symfony/framework-bundle Version ^4.0
enm/json-api-server Version ^3.0
guzzlehttp/psr7 Version ^1.0