Testing Deployed Stages using Postman

You can use various tools such as Postman to verify if the deployed stages work well.

Prerequisite:

Adding and Deploying Stages

To test the deployed stages:

  1. On the Apps page, find the created Microflow® application and click Endpoint, and then click Copy to copy the endpoint URL.
  2. Open Postman.
  3. Select the POST operation and send a request against the Microflow endpoint with the following data, for example, https://integration.cloud.tibco.com:98/n4wixkyn77ctwebieai6ytovweyq4eif/user/createWithArray

    Note: You have to add the resource path to the endpoint URL to view the resource operations. For example, for petstoreapplication, you have to add the resource user to the endpoint URL to view user resource.

     [
       {
         "id": 1,
         "username": "Michael",
         "firstName": "Michael",
         "lastName": "Zhang",
         "email": "michael@example.com",
         "password": "131313",
         "phone": "131313",
         "userStatus": 0
       },
       {
         "id": 2,
         "username": "Jack",
         "firstName": "Jack",
         "lastName": "Li",
         "email": "jack@example.com",
         "password": "131313",
         "phone": "131313",
         "userStatus": 0
       },
       {
         "id": 3,
         "username": "John",
         "firstName": "John",
         "lastName": "Gao",
         "email": "test3@example.com",
         "password": "131313",
         "phone": "131313",
         "userStatus": 0
       },
       {
         "id": 4,
         "username": "Lily",
         "firstName": "Lily",
         "lastName": "Yang",
         "email": "lily@example.com",
         "password": "131313",
         "phone": "131313",
         "userStatus": 0
       }
     ]
    
  4. Click Send.

    A response code 200 and a message “If you pass more than 3 users, only the first 3 users are added, other users will be dropped.” are returned.

  5. Use the GET/user/{username} API to test if only the first 3 users are added:

    • Send a request to get the user information of Michael, for example, https://integration.cloud.tibco.com:98/n4wixkyn77ctwebieai6ytovweyq4eif/user/Michael, you can get the user information added in Step 3.

    • Send a request to https://integration.cloud.tibco.com:98/n4wixkyn77ctwebieai6ytovweyq4eif/user/Lily, the following error message is displayed: