Skip to content
Prev Previous commit
Added Default Response payload in all APIs
Changes -
1. Added Default Response payload in all APIs
2. Made azNs description more clear
  • Loading branch information
abversqr committed Apr 24, 2018
commit fb180fb311d73934d0f5150f72638cc3de155ea0
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@
}
],
"responses": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should have a default response modeled here -- if the service fails for any reason, the client needs to be able to get the error response.

"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"200": {
"description": "Successful request to delete a Log Search rule"
},
Expand Down Expand Up @@ -178,6 +184,12 @@
}
],
"responses": {
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"200": {
"description": "Successful request for a list of alert rules",
"schema": {
Expand Down Expand Up @@ -216,6 +228,12 @@
}
],
"responses": {
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"200": {
"description": "Successful request for a list of alert rules",
"schema": {
Expand Down Expand Up @@ -376,7 +394,7 @@
"properties": {
"actionGroup": {
"type": "array",
"description": "azns notification group reference.",
"description": "Azure Group reference.",
"items": {
"type": "string"
}
Expand Down