Skip to content

Commit ddcec33

Browse files
authored
Clarify combination of JSON:API with other standars
JSON:API can and should be combined with other standards. But there has been some confusion about it in the past. E.g. people tried using it for authentication concerns such as login instead of established standards such as OAuth 2.0. Others assumed an API implementing JSON:API cannot support file upload. There seems to be a need clarifying it in the specification to avoid such confusion going forward.
1 parent 353ef57 commit ddcec33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_format/1.2/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ JSON:API is designed to minimize both the number of requests and the amount of
1313
data transmitted between clients and servers. This efficiency is achieved
1414
without compromising readability, flexibility, or discoverability.
1515

16+
JSON:API can and should be combined with additional standards addressing other needs of HTTP APIs such as [OAuth 2.0](https://datatracker.ietf.org/doc/html/rfc6749) for authorization and [Open API](https://spec.openapis.org/oas/latest.html) for documentation. A server supporting JSON:API can support other API standards such as [OData](https://www.odata.org/) or [GraphQL](https://graphql.org/) on the same or other endpoints.
17+
1618
JSON:API requires use of the JSON:API media type
1719
([`application/vnd.api+json`](http://www.iana.org/assignments/media-types/application/vnd.api+json))
1820
for exchanging data.

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