Share via

Backend API is single URL with different methods

Lily 136 Reputation points
2021-09-30T07:40:30.067+00:00

Hi experts,
I encounter a bunch of APIs like these and not sure what it the better way to map them to APIM.

Same url with different methods, and each of them have different parameters.

POST /customers
GET /customers
PUT /customers
DELETE /customers

136547-image.png

For above sample, it seems I can create 4 operations in APIM (create_customers, get_customers, update_customer, delete_customer)

But I'm not sure if this is a good practice for such scenario or any drawbacks will happen in the future.
Can you give me some hints ?

Thank you

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

0 comments No comments

Answer accepted by question author

MayankBargali-MSFT 71,016 Reputation points Moderator
2021-09-30T09:26:06.693+00:00

@Lily It depends upon how you want to expose the API's to the end user/consumers. There are no drawbacks and you can create the Frontend as per your requirement.

In general for best pratices on designing any API you can refer to this document.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.