Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Swagger/RAML (or any similar REST API spec) supports REST asynchronous client callbacks?

I want to use REST async client callback, meaning the server is causing a callback operation to be invoked on the client side when a response is ready (see Jersey's 'Asynchronous Services and Clients' to get what I mean)

Can I express this in Swagger/RAML/anything similar, and enjoy the relevant server/client code generation, documentation generation etc.? Can you point to relevant examples/resources?

like image 874
Gilad Bar Orion Avatar asked Dec 14 '25 18:12

Gilad Bar Orion


1 Answers

OAS (formerly Swagger) considered it:
https://github.com/OAI/OpenAPI-Specification/issues/716
https://github.com/OAI/OpenAPI-Specification/issues/737
and even merged the callback feature and landed in OAS 3.0.
But the tools I used doesn't seems to support the addition at the moment.

like image 137
leesei Avatar answered Dec 17 '25 06:12

leesei



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!