Skip to content

Commit

Permalink
Updating readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankraemer committed Jan 6, 2025
2 parents c6e70c6 + 1aa3358 commit 8a7f475
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 8a7f475

Please sign in to comment.