Skip to content

Latest commit

 

History

History
56 lines (51 loc) · 1.09 KB

1011.md

File metadata and controls

56 lines (51 loc) · 1.09 KB

1011 - AddingResponseCode

Description: Checks whether any new response code is added from the previous specification.

Cause: This is considered a breaking change.

Example: Response code 204 is added to existing delete operation in the new 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/{a}": {
      "delete": {
        ...
        "responses": {
          "200" : { ... }
        }
        ...
      }
    }
    ...
    ...  

New specification

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