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
Expand all | Collapse all

Add common/shared utility libraries in Gatewascript IBM API Connect v10 on Cloud Pack for integration

  • 1.  Add common/shared utility libraries in Gatewascript IBM API Connect v10 on Cloud Pack for integration

    Posted Wed November 16, 2022 05:38 AM
    I will add a script to use it in the same way on gatwayscripts on my different APIs. I came up with the idea of adding this script as a common/shared library with CommonJs, but I couldn't find the gatewayscript system directory (local and store) to add my script on my APIC instance on CP4I.

    ------------------------------
    Hamza Bayar
    ------------------------------


  • 2.  RE: Add common/shared utility libraries in Gatewascript IBM API Connect v10 on Cloud Pack for integration

    Posted Thu November 17, 2022 09:18 AM
    You could use configmap to package your js and upload your js to local directory of  apiconnect domain in datapower cr. similiar like this:


    kubectl create configmap apicdomain-local  --from-file=apic-domain-local.tar.gz

    and add in gateway cr of apic connect operator:

    spec:
      ...
      additionalDomainConfig:
      - name: apiconnect
          config:
          - "empty"
          local:
          - "apicdomain-local"



    ------------------------------
    Gang Wu
    ------------------------------