5

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!

Webber
  • 593
  • 6
  • 20

2 Answers2

10

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.

Evert
  • 75,014
  • 17
  • 95
  • 156
0

Think about it as OpenAPI is a “Data Format” and JSON API is a “Data Contract”.

More on this here: https://apisyouwonthate.com/blog/json-api-openapi-and-json-schema-working-in-harmony

mrded
  • 3,500
  • 2
  • 27
  • 32