Hello,
I am trying to create a new custom connector to a third party API. Some things to note:
- We do not have any control over the API, so modifying it is out of the question.
- The API does not support OpenAPI/Swagger (it is an Apiary API, has it's own "API Blueprint"). Because of this, I have created the custom connector from blank.
This API supports a bunch of webhooks. Great! I can make a bunch of triggers! Or so I thought...
The webhooks are from a single URL (POST --> ../api/v1/webhooks). To create a given webhook, I specify a parameter in the body of my request (e.g. "Type": "Sale/OrderAuthorised"). The first trigger was easy to set up and worked perfectly. However, I try to add another trigger (under Request > Import from Sample) and I am met with the following error:
The combination of path and method must be unique to each operation. There are 2 operations sharing this path and method including: SaleQuoteAuthorised, SaleOrderAuthorised
Bummer. So I can't create multiple triggers with the same URL. Okay then, perhaps I can make the webhook trigger generic, have the user select the "Type" in a dropdown instead, and then have multiple responses for a single trigger... NOPE. I can't add multiple responses to a single trigger either! So, what is the solution to this problem then? Seems like I should be able to workaround this limitation... but I can't figure it out. Any help is appreciated!