Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6a051c

Browse files
committed
Content Negotiation: add non-normative note about serving JSON API as json
1 parent bc47c04 commit a6a051c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

format/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ Servers **MUST NOT** send responses with the `application/vnd.api+json` media
4848
type if the client has not indicated, using its `Accept` header, that it can
4949
understand this format.
5050

51+
> Note: If a client's `Accept` header indicates that it accepts standard JSON
52+
but not the JSON API media type, the server may choose serve it a JSON API
53+
document identified as `application/json`. If the server does so, is not
54+
considered to be sending "JSON API data" for the purposes of the requirement
55+
above, but rather simple JSON data, and the client cannot rely on any of the
56+
rules laid out in this specification.
57+
5158
Clients **MUST** ignore any parameters for the `application/vnd.api+json`
5259
media type received in the `Content-Type` header of response documents.
5360

0 commit comments

Comments
 (0)