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:
@@ -18,12 +18,12 @@
|
||||
* [TLS](protocol/tls.md)
|
||||
* [Know your HTTP](protocol/know-your-http.md)
|
||||
* [Separate Concerns](protocol/separate-concerns.md)
|
||||
* [Content Negotiation](protocol/content-negotiation.md)
|
||||
* [Request Methods](protocol/use-appropriate-methods.md)
|
||||
* [Status Codes](protocol/use-appropriate-status-codes.md)
|
||||
* [Caching](protocol/caching.md)
|
||||
* [Message](message/README.md)
|
||||
* [Message Formats](message/message-formats.md)
|
||||
* [Content Negotiation](message/content-negotiation.md)
|
||||
* [Siren](message/siren.md)
|
||||
* [Error Reporting](message/error-reporting.md)
|
||||
* [JSON](message/json.md)
|
||||
|
||||
@@ -4,7 +4,7 @@ Every API MUST implement and every API Consumer MUST use [HTTP content negotiati
|
||||
> 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:
|
||||
A client is programmed to understand the `application/vnd.example.resource+json; version=2` message format semantics. The client requests a representation of the `/greeting` resource in desired the media type (including its version) from the server:
|
||||
|
||||
```
|
||||
GET /greeting HTTP/1.1
|
||||
|
||||
Reference in New Issue
Block a user