API specification format for hypermedia-centric APIs #4183
someniatko
started this conversation in
General
Replies: 1 comment
-
If you're using OpenAPI 3.1, one thing that might help is In general, OpenAPI is more of a design-time tool, while hypermedia is primarily runtime. From the point of view of supporting something like HAL, that seems mostly about making sure that there are good Schema Object patterns to support it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
At the company where I currently work, we started adopting a more hypermedia driven approach to our internal APIs, which includes the following changes in contrast to the traditional data-centric APIs.
Specifically, we are using HAL, and an alternative approach, json:api also exists (but to my taste is much more verbose). We also love using OpenAPI for documenting the actual data fields, the request payloads for mutating requests and query parameters for filters etc. However, we found out that it requires lots of boilerplate for describing the
_links
object, and especially the_embedded
resources.Is anyone out there using either HAL or json:api, or a similar approach with OpenAPI? And if so, are you interested in either abstracting OpenAPI to natively support these concepts, or perhaps in a separate specification format designed for this type of APIs? Right now I am working on a example document, inspired by OpenAPI, of how such a specification might look like, focusing on HAL support for now.
Beta Was this translation helpful? Give feedback.
All reactions