mirror of
https://github.com/adidas/api-guidelines.git
synced 2025-10-25 15:19:19 +00:00
Updates protocol/content-negotiation.md
Auto commit by GitBook Editor
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# Content Negotiation
|
||||
Every API MUST implement and every API Consumer MUST use [HTTP content negotiation](https://tools.ietf.org/html/rfc7231#section-3.4) where a representation of a resource is requested.
|
||||
|
||||
> NOTE: The content negotiation plays the key role in evolving an API, change management and versioning.
|
||||
|
||||
#### Example
|
||||
A client is programmed to use the `application/vnd.example.resource+json; version=2` media type. The client requests a representation of the `/greeting` resource in desired the media type (including its version) from the server:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user