Skip to content

Commit 13b1d6c

Browse files
Note the need for quality values in Accept (json-api#1504)
* Note the need for quality values in Accept Implementors of Accept very often get this wrong. The spec's own example in a previous draft got this wrong (see json-api#1409). * Reword and add additional nuance. Co-authored-by: Gabriel SULLICE <gabriel@sullice.com>
1 parent c7dc79d commit 13b1d6c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_format/1.1/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,11 @@ to request that the server apply one or more profiles to the response document.
218218
> Note: A client is allowed to send more than one acceptable media type in the
219219
`Accept` header, including multiple instances of the JSON:API media type. This
220220
allows clients to request different combinations of the `ext` and `profile`
221-
media type parameters.
221+
media type parameters. A client can use [quality values](https://tools.ietf.org/html/rfc7231#section-5.3.2)
222+
to indicate that some combinations are less preferable than others. Media types
223+
specified without a qvalue are equally preferable to each other, regardless of
224+
their order, and are always considered more preferable than a media type with a
225+
qvalue less than 1.
222226

223227
### <a href="#content-negotiation-servers" id="content-negotiation-servers" class="headerlink"></a> Server Responsibilities
224228

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy