Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions core/content-negotiation.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,3 +409,12 @@ use ApiPlatform\Laravel\Eloquent\Filter\JsonApi\SortFilter;
)]
class Book extends Model {}
```

### Advertising Linked Data Platform HTTP Headers (Allow & Accept-Post)

API Platform automatically adds two HTTP headers to responses for resources:

- **Allow** advertises enabled HTTP methods on the *current URI template*.
- **Accept-Post** advertises POST-able media types (from operation input formats) and is only present when a POST operation exists for the template.

> See [LDP §4.2 / Primer notes on Accept-Post](https://www.w3.org/TR/ldp/#Accept-Post) and typical exposure via OPTIONS.