Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136732

[OAS, later] Callback object support

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Network
    • None

    Description

      In OpenAPI 3 specs, you can define callbacks – asynchronous, out-of-band requests that your service will send to some other service in response to certain events.

      ```

       A typical example of a callback is subscription functionality – users subscribe to certain events of your service and receive a notification when this or that event occurs. For example, an e-shop can send a notification to the manager on each purchase. These notifications will be “out-of-band”, that is, they will go through a connection other than the connection through which a visitor works, and they will be asynchronous, as they will be out of the regular request-response flow.

      ```

      The feature is not supported by the initial [C++ Qt5 Client generator:|https://openapi-generator.tech/docs/generators/cpp-qt-client] , but it's a part of OAS 3.*, see:

      https://spec.openapis.org/oas/v3.1.0.html#callback-object

       

      We may decide to have that feature implemented for Qt6 version.

      See callbacks full example:

      https://swagger.io/docs/specification/v3_0/callbacks/

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cnn Qt Core & Network
            tatiana.borisova Tatiana Borisova
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes