Skip to content

Latest commit

 

History

History
69 lines (64 loc) · 1.45 KB

1035.md

File metadata and controls

69 lines (64 loc) · 1.45 KB

1035 - RemovedOperation

Description: Checks whether an existing operation from a path is removed from the previous specification.

Cause: This is considered a breaking change. This change requires new api-version.

Example: Operation get from Path /subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1/subResource1 is being removed without revising api-version.

Old specification

{
  "swagger": "2.0",
  "info": {
    "title": "swagger",
    "description": "The Azure Management API.",
    "version": "2016-12-01",
    ...
    ...
  "paths": {
    "/subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1": {
      "get": {
        ...
      },
      "put": {
        ...
      }
    },
    "/subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1/subResource1": {
      "get": {
        ...
      },
      "delete": {
        ...
      }
    }
    ...
    ...  

New specification

{
  "swagger": "2.0",
  "info": {
    "title": "swagger",
    "description": "The Azure Management API.",
    "version": "2016-12-01",
    ...
    ...
  "paths": {
    "/subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1": {
      "get": {
        ...
      },
      "put": {
        ...
      }
    },
    "/subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1/subResource1": {
      "post": {
        ...
      },
      "delete": {
        ...
      }
    }
    ...
    ...