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.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  Reusable policies in API Connect

    Posted Mon May 15, 2023 10:09 AM
    Hi Team...
     
    We are developing multiple API's where the below set of activities is getting repeated. My query is, how can I group all these functionalities (implemented in individual policies like map, invoke, gatewayscript policy etc...) and create a single policy or whatever so that I can reuse this code in all the API assemblies effectively. Please advise how this can be achieved in API Connect
     
    1. Creating a backend request
    2. Hitting the backend
    3. Extracting the backend response and verifying certain fields
    4. Implementing encryption and decryption on the request and response


    ------------------------------
    Ashok Beshra
    ------------------------------


  • 2.  RE: Reusable policies in API Connect

    Posted Mon May 15, 2023 04:28 PM

    it can be done through user defined policies. Please find github link below

    https://github.com/ibmArtifacts/GlobalPolicy_and_UDP/blob/main/2.%20User-Defined%20Policy:%20Validate.md



    ------------------------------
    santhoshkumar surisetty
    ------------------------------



  • 3.  RE: Reusable policies in API Connect

    Posted Tue May 16, 2023 09:40 AM
    Edited by Nick Cawood Tue May 16, 2023 11:21 AM

    In addition to the github link shared above, here is a TechCon 2023 session which contains a section on this topic:

    https://youtu.be/TPIur0UGWH0



    ------------------------------
    Nick Cawood
    API Connect Consultant
    IBM Hybrid Cloud Integration Expert Labs
    IBM UK Ltd

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