Backend API is single URL with different methods

Lily 126 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.
2,253 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,791 Reputation points
    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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