Forum Discussion

mma5997's avatar
mma5997
Occasional Contributor
5 years ago
Solved

Does OpenApi Operation having callback invoke internally or needs to be implemented ?

Basically, my query is how do I invoke the callback URL for a specific operation(ex post,get etc...).
I am able to reflect the details of the callback URL expression in swagger UI but it didn't get invoked.

Is it needed to make changes to the swagger UI JS files wherein I'll first resolve the runtime expression for the callback URL and then invoke the same as well?

  • At the moment, Swagger UI does not support auto-following links. It's on our long to do list...

1 Reply

  • NisHera's avatar
    NisHera
    Valued Contributor

    to call log.message you need parenthesis

    see this example.

    It's better to get the name first in to a string and then display it with .... log.message(str)

    • Felixg's avatar
      Felixg
      Occasional Contributor

      Hi NisHera,

       

      Thanks for your quick answer.

       

      So I tried :

       

      Dim str : str = Sys.Process("proto_cmenu").QtObject("CMenu", "", 1).getTestName(0)
      Log.Message ("Test Name 0 = " + str)

      Nevertheless, I get the same error :

       

      Debug String: QMetaObject::invokeMethod: No such method CMenu::getTestName(getTestName)
      Candidates are:
          getTestName(int)