Hi Community,
I am working on a POC where a third-party system interacts with my Appian Web API. The setup involves the following:
1. The third-party system is configured to call my API endpoint: https ://appianCloud.com/suite/webapi/endpoint1 for a GET operation to retrieve data using query parameters.
2. In subsequent calls, the system appends /action or /response to the same endpoint URL and performs a POST operation to modify the data for the same record.
Given this requirement, I would like to know:
• Is it possible to handle this type of scenario within a single Appian Web API object?
• If not, are there any known workarounds or best practices to manage such dynamic operation variations?
Looking forward to your insights. Thank you in advance!
Discussion posts and replies are publicly visible
It is possible to have same endpoints as long as the method is different. Create separate APIs for each methods
One API for GET with endpoint1
Another API for all the POST API, you can handle your logics using relative paths (endpoint1/action and endpoint1/response)
In the API, you can use http!request.pathSegments to differentiate the logics for each