Search code examples
apirestopenapijson-api

OpenAPI vs JSON:API


I couldn't find any resources on the use case differences between JSON:API & OpenAPI

From my understanding, JSON:API is more focused on the business data while OpenAPI is more about REST itself?

Any pointers would be great, thanks!


Solution

  • You can use OpenAPI to describe API's, and JSON:API is a standard to structure your apis. If you use JSON:API, you can still use OpenAPI to describe it.

    So OpenAPI's goal is really to provide a full description on how your API can be called, and what operations are available. JSON:API gives you a strong opinion on how to structure it.