Download the PHP package faecie/json-api-error-response without Composer
On this page you can find all versions of the php package faecie/json-api-error-response. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download faecie/json-api-error-response
More information about faecie/json-api-error-response
Files in faecie/json-api-error-response
Download faecie/json-api-error-response
More information about faecie/json-api-error-response
Files in faecie/json-api-error-response
Vendor faecie
Package json-api-error-response
Short Description The Bundle provides en error response as it described in JsonApi specification
License MIT
Package json-api-error-response
Short Description The Bundle provides en error response as it described in JsonApi specification
License MIT
Please rate this library. Is it a good library?
Informations about the package json-api-error-response
JsonApiErrorResponseBundle
This bundle provides a way return JSON:API compatible error responses from REST endponts
Perfectly works along with FOS REST bundle configured to json response. OIn this case you will alway get response in a JSONAPI compatible format. https://jsonapi.org/format/#errors
Installation
Configuration
You can configure the response of your exception in different ways:
- Implement interface
DescriptiveExceptionInterface
on your exception with only one method returning the array of Error objects - Configure each exception class in the bandle configuration
- Tag you service as
json_api.exception_describer
and implementExceptionDescriberInterface
on it with only one method allowing you to control how to serialize your exceptions
All versions of json-api-error-response with dependencies
PHP Build Version
Package Version
Requires
friendsofsymfony/rest-bundle Version
^2.3
symfony/config Version ^4.1
jms/serializer Version ^1.13
symfony/config Version ^4.1
jms/serializer Version ^1.13
The package faecie/json-api-error-response contains the following files
Loading the files please wait ....