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.  Application Lifecycle

    Posted Thu April 04, 2024 07:44 AM

    Hi,

    I am trying to understand the use case and underlaying process of "Application lifecycle" option.

    When we enable the "Application Lifecycle" on the catalog. we see that when App is created at first , it shows as development and the goes approval process. And once approved the status becomes Production.

    but I am not able to follow what is the use case for this to be used. 



    ------------------------------
    Syed Imtiyaz Alam
    ------------------------------


  • 2.  RE: Application Lifecycle

    Posted Fri April 05, 2024 05:31 AM

    Hiya

    Some customers might have different backend endpoints they want to call for "development" vs "production", where those states refer to the Application Developer (the consumer).

    For example allowing the application developer to test their consuming application against mock data before they request upgrade to production. The Application Lifecycle feature sets some context variables in the API Assembly so you can then do whatever routing or logic that you want accordingly. E.g. you could use the mock policy to return templated data if it is a development app, and only actually invoke the real backend if is a production app.



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



  • 3.  RE: Application Lifecycle

    Posted Fri April 05, 2024 07:08 PM
    Edited by Syed Imtiyaz Alam Fri April 05, 2024 10:10 PM

    Thank you Chris, this does makes sense.

    this is available now: client.app.lifecycle-state



    ------------------------------
    Syed Imtiyaz Alam
    ------------------------------



  • 4.  RE: Application Lifecycle
    Best Answer

    Posted Sat April 06, 2024 05:59 AM

    See API Connect context variables

    Ibm remove preview
    API Connect context variables
    List of IBM API Connect context variables that you can reference when defining default parameter values in an assembly operation, or by using the getContext() function when defining a policy.
    View this on Ibm >

    "client.app.lifecycle-state"



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