API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  How are webhooks implemented in API Connect 10?

    Posted Tue September 03, 2024 01:38 PM
    How are webhooks implemented in API Connect 10?
     
    Hello team.
    I need to know how webhooks are implemented in API Connect. I have the task of generating an alert when a consumer application activates or deactivates its status.
    In a previous comment, I was recommended to implement webhooks, but this is the first time I am going to implement something like this in API Connect and I would like to know if there is documentation that guides me step by step to be able to carry this out. I have searched for information on the Internet, but it has not been easy to find something related to API Connect.
     
    Thanks experts.


    ------------------------------
    Jimmy Perilla
    ------------------------------


  • 2.  RE: How are webhooks implemented in API Connect 10?

    Posted Wed September 04, 2024 01:21 AM

    I am not aware of any public webhook mechanism you can use with APIC, I'm not sure what the earlier poster was referring to.

    The ability to do alerts like you mentioned is something we're looking at so I'd recommend raising an RFE with your exact requirements and you might find we build it into the product for you!



    ------------------------------
    Chris Dudley
    ------------------------------



  • 3.  RE: How are webhooks implemented in API Connect 10?

    Posted Thu September 05, 2024 04:44 AM

    Applications have a "state" - enabled or disabled as you suggest in your post.

    APIC exposes CI/CD Pipeline tooling that can show the "state" of Apps.
    You can list all Apps, find the enabled/disabled Apps and store the results programmatically at Time X then at Time X+1 repeat this and compare the results - then outside of APIC you can programmatically generate the alerts you need.

    e.g.
    https://apic-api.apiconnect.ibmcloud.com/v10/#/IBMAPIConnectPlatformProviderAPI_200/operation/%2Fcatalogs%2F{org}%2F{catalog}%2Fapps/get
    https://apic-api.apiconnect.ibmcloud.com/v10/#/IBMAPIConnectPlatformProviderAPI_200/operation/%2Fapps%2F{org}%2F{catalog}%2F{consumer-org}%2F{app}/get

    Additionally, you could do something similar to monitor for App creation / deletion using the same logic but looking at existence or not of the Apps (without looking at "state").

    Obviously APIC supports the CI/CD Pipeline commands themselves but currently there is no support for the programmatic manipulation of the results from the CI/CD Pipeline commands.



    ------------------------------
    Nick Cawood
    API Connect Consultant
    IBM Expert Labs
    IBM UK Ltd

    https://www.linkedin.com/in/nickcawood/
    ------------------------------