diff --git a/readme.md b/readme.md index 3061fbd..baa4437 100644 --- a/readme.md +++ b/readme.md @@ -12,31 +12,7 @@ This bundle provides support for [RFC 9457](https://www.rfc-editor.org/rfc/rfc94 composer require phauthentic/problem-details-symfony-bundle ``` -## Problem Details Example - -```text -HTTP/1.1 422 Unprocessable Content -Content-Type: application/problem+json -Content-Language: en - -{ - "type": "https://example.net/validation-error", - "title": "Your request is not valid.", - "errors": [ - { - "detail": "must be a positive integer", - "pointer": "#/age" - }, - { - "detail": "must be 'green', 'red' or 'blue'", - "pointer": "#/profile/color" - } - ] -} -``` - - -## Documentation +## Docs ```php class ExampleController @@ -61,7 +37,28 @@ class ExampleController } ``` +## Problem Details Example +```text +HTTP/1.1 422 Unprocessable Content +Content-Type: application/problem+json +Content-Language: en + +{ + "type": "https://example.net/validation-error", + "title": "Your request is not valid.", + "errors": [ + { + "detail": "must be a positive integer", + "pointer": "#/age" + }, + { + "detail": "must be 'green', 'red' or 'blue'", + "pointer": "#/profile/color" + } + ] +} +``` ## Alternatives