microsoft / api-guidelines

Microsoft REST API Guidelines
Other
22.66k stars 2.71k forks source link

Reference implementation REST API #459

Open istibekesi opened 1 year ago

istibekesi commented 1 year ago

Question: Is there any reference implementation of the Microsoft REST API Guidelines publicly available?

(I’ve checked the GitHub API, but I’ve noticed slight differences. For example, GitHub uses PUT, for submit a command, instead of POST)

JeffreyRichter commented 1 year ago

The older guidelines were implemented haphazardly and are still used for M365 services.

However, we actively work on and update the Azure REST guidelines:

A newer service to look at is Azure Communication Service (ACS). There are several other newer services as well.

istibekesi commented 1 year ago

I’ve checked the Azure Guidelines and compared them to one of the ACS service references you recommended to look at.

A few questions came to my mind that could help me see if I understood the guidelines correctly.

JeffreyRichter commented 1 year ago
rszabolcs commented 1 year ago

It's a really interesting conversation. If I may ask as well, can you mention an example where PATCH is used for resource creation? The examples I skimmed just didn't.

JeffreyRichter commented 1 year ago

Here's an example, see https://[raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/agrifood/data-plane/Microsoft.AgFoodPlatform/preview/2023-06-01-preview/agfood.json](https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/agrifood/data-plane/Microsoft.AgFoodPlatform/preview/2023-06-01-preview/agfood.json)

Some of these resources have PATCH (without any PUT) and the docs for PATCH says: "Creates or updates an application data resource under a particular party." (for example).