webapi-discovery / rfcs

w3c WebAPI Discovery Community Group - Request For Comments
https://webapi-discovery.github.io/rfcs
The Unlicense
4 stars 1 forks source link

potentialAction #15

Open smrgeoinfo opened 4 years ago

smrgeoinfo commented 4 years ago

An approach to description of service operation in Schema.org has been outlined (Part 3: Action EntryPoints) , but there are some issues that need to be clarified. See https://github.com/schemaorg/schemaorg/issues/2340, https://github.com/schemaorg/schemaorg/issues/2342

MikeRalphson commented 4 years ago

It's not clear what your call-to-action is here? Is it simply to create a place to link issues in other repositories? The schema.org examples are outwith the scope of this working group, as is use of potential Actions of a CRUD nature to describe the contract of a WebAPI. This is about discovery.

nickevansuk commented 4 years ago

@smrgeoinfo I also made the same error initially when I read https://schema.org/docs/actions.html as an opportunity to enable a hypermedia-driven API using schema.org vocab (and without going all the way to adopting Hydra). Indeed a previous iteration of one of our own specifications adopted this pattern erroneously.

If you look at potentialAction in the wild, however, its actual use case becomes much more apparent:

"Actions are used to describe an affordance to perform a certain operation..." (ref). Also see here for a clearer description of the intent of Actions.

As you can see from the above, they were not intended to compete with what is now OpenAPI and other similar forms of machine-readable API description.