Updates protocol/content-negotiation.md

Auto commit by GitBook Editor
This commit is contained in:
apidesigner
2017-02-06 09:40:51 +00:00
parent 7166c8826f
commit 2c81283b01
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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