Can we consolidate multiple logic apps into one API ?

Amy Z 291 Reputation points
2021-02-19T09:12:46.307+00:00

Hi, we have several logic apps that will be hosted on APIM.
The user hope those logic apps could be treated as one API for API consumers.

Let's say, in logic app
logic app 1 : search contact (url1)
logic app 2 : create contact (url2)
logic app 3 : edit contact (url3)

Each of them has individual endpoint

In APIM, we can add logic API directly through UI, and each logic app will become individual API.

Is that possible to let the result like this ?
API : Contact API
operation 1 : search contact (url1)
operation 2 : create contact (url2)
operation 3 : edit contact (url3)

What comes into our mind is manually setting, not sure if there's any better way to achieve this ?

Need you advice, thank you

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,875 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 24,081 Reputation points Microsoft Employee
    2021-02-19T22:26:05.28+00:00

    Hello @Amy Z , Thank you for reaching out. I think the requirement can be achieved by using Advanced policies and Transformation policies in APIM. You can use the Set backend service transformation policy to set a different backend URI based on conditions applied using the Control flow advanced policy. You can refer to this sample policy for implementation only the conditions will be different based on your requirements. Please let me know if there are any additional concerns. Thank you!

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Ariyo Shahry 1 Reputation point
    2022-06-10T18:09:29.147+00:00

    The easiest and most flexible way I've found to do this is to start with a HTTP (manually defined API) first. Then create an operation that correspond to the logic App method (POST,GET, etc). Once the operation is added, go to design tab and find the "Backend" section. click on the pencil edit button. From the new panel that appears, select the "Azure Logic App" radio button and browse to your logic app.

    0 comments No comments