API Connect

 View Only
  • 1.  APIC API testing with mock data

    Posted Wed January 24, 2024 03:30 PM

    Hi Team,

    I am trying to do some POC on checking how the APIs can be tested with mock data with certain condition. below are the options I am exploring:

    1. Using Message-template. It seems this is not available on 10.x 
    2. using XSLT.
    3. See if the response can be retrieved from the sample data itself which is available on the developer portal

    I am trying to response with mock data when certain condition is met like

    ($httpVerb() = 'GET') and X-ibm-client-name is like  then invoke mock data otherwise call actual backend.
    and exploring the 3rd option as YAML file can generalize that way we don't have to code it each YAML. 

     



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


  • 2.  RE: APIC API testing with mock data

    Posted Thu January 25, 2024 05:40 AM

    I think this is a duplicate post of https://community.ibm.com/community/user/integration/discussion/testing-apic-apis-and-sending-dummy-test-data-based-on-the-schema?ReturnUrl=%2fcommunity%2fuser%2fintegration%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3d2106cca0-a9f9-45c6-9b28-01a28f4ce947 ?



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