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.  Call API based on Version

    Posted Fri March 10, 2023 04:55 AM

    Hi everyone,

    I am new to API Connect and I have a requirement for having two version of the same API.

    Object: one product with two version of the same API (same path)

    It is possible? how can I differentiate them?

    Other question, can I rewrite the request.path variable?

    Thanks in advance.



    ------------------------------
    Filipe Ventura
    ------------------------------


  • 2.  RE: Call API based on Version
    Best Answer

    Posted Fri March 10, 2023 10:39 AM

    Hi Filipe,

    You can have multiple versions of the same API published, and different subscribers can access the different versions.   A subscriber should only subscribe to one version.   If they somehow are subscribed to both versions, it is indeterminate as to which one will be executed, so that is definitely not a good practice.

    As for rewriting request.path, request.* is immutable and cannot be changed.

    Regards,
    Steve



    ------------------------------
    Steve Linn
    Senior Consulting I/T Specialist
    IBM
    ------------------------------



  • 3.  RE: Call API based on Version

    Posted Tue March 14, 2023 05:42 AM

    Thanks Steve.

    Where I can find info about the request.* variables to know that is immutable?

    Considering what you said the subscriber only access to the last version of that api in the product.

    What if I have different versions in different products? can I do something?

    Regards



    ------------------------------
    Filipe Ventura
    ------------------------------