How can I implement a feature to fetch and display images that are being uploaded from my mobile application in my web application?
To achieve this functionality, we will configure an API of DMS.
We will have to configure an API in vConnect and then consume it in vFlow.
To configure API in vConnect:
- Provide the name of your API.
- And in the API URL, the value will be: http://vahana-dms:9047/document-manager/download/v1/getDocumentsUsingIds
- In End Point Details:
- We will have to go for a Request transformation: we will go for a complex request and the template will be
- In End Point Header Details,
- For Storage ID, you will have to raise a ticket for the Infra team.
- In Template Body Parameter Mapping,
Here, in the name parameter, you will provide the name of your element which will give the request parameter of the API.
For configuring this API in vFlow. You can follow these steps:
- Create a Task Group and map an API task in it.
- For the API task configuration in the Client-to-server Parameter, we will provide the data path of our element and the key name must be the same in the vConnect’s API configuration and the API task.
- In Server-to-Client,
In the key name, we will provide the data path of the element where we want to show the response.
And in the data path, we will provide the getVal(“Name of the API”).