-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "REST: Move out responses that are specific to one endpoint only."
- Loading branch information
Showing
16 changed files
with
1,455 additions
and
1,521 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"InvalidNewItemInput": { | ||
"description": "The request cannot be processed", | ||
"content": { | ||
"application/json": { | ||
"schema": { "$ref": "../../global/response-parts.json#/Error" }, | ||
"examples": { | ||
"value-too-long": { "$ref": "../../global/examples.json#/ValueTooLongExample" }, | ||
"statement-group-property-id-mismatch": { "$ref": "../../global/examples.json#/StatementGroupPropertyIdMismatch" }, | ||
"referenced-resource-not-found": { "$ref": "../../global/examples.json#/ReferencedResourceNotFoundExample" }, | ||
"invalid-value": { "$ref": "../../global/examples.json#/InvalidValueExample" }, | ||
"missing-field": { "$ref": "../../global/examples.json#/MissingFieldExample" }, | ||
"invalid-key": { "$ref": "../../global/examples.json#/InvalidKeyExample" }, | ||
"resource-too-large": { "$ref": "../../global/examples.json#/ResourceTooLargeExample" } | ||
} | ||
} | ||
}, | ||
"headers": { | ||
"Content-Language": { | ||
"schema": { "type": "string" }, | ||
"description": "Language code of the language in which error message is provided" | ||
} | ||
} | ||
}, | ||
"InvalidGetItemInput": { | ||
"description": "The request cannot be processed", | ||
"content": { | ||
"application/json": { | ||
"schema": { "$ref": "../../global/response-parts.json#/Error" }, | ||
"examples": { | ||
"invalid-path-parameter": { "$ref": "../../global/examples.json#/InvalidPathParameterExample" }, | ||
"invalid-query-parameter": { "$ref": "../../global/examples.json#/InvalidQueryParameterExample" } | ||
} | ||
} | ||
}, | ||
"headers": { | ||
"Content-Language": { | ||
"schema": { "type": "string" }, | ||
"description": "Language code of the language in which error message is provided" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"InvalidPropertyInput": { | ||
"description": "The request cannot be processed", | ||
"content": { | ||
"application/json": { | ||
"schema": { "$ref": "../../global/response-parts.json#/Error" }, | ||
"examples": { | ||
"invalid-path-parameter": { "$ref": "../../global/examples.json#/InvalidPathParameterExample" }, | ||
"invalid-query-parameter": { "$ref": "../../global/examples.json#/InvalidQueryParameterExample" } | ||
} | ||
} | ||
}, | ||
"headers": { | ||
"Content-Language": { | ||
"schema": { "type": "string" }, | ||
"description": "Language code of the language in which error message is provided" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
"InvalidPatchedItemSitelinks": { | ||
"description": "Applying the provided JSON Patch results in invalid sitelinks", | ||
"content": { | ||
"application/json": { | ||
"schema": { "$ref": "../../global/response-parts.json#/Error" }, | ||
"examples": { | ||
"patch-result-referenced-resource-not-found": { "$ref": "../../global/examples.json#/PatchResultResourceNotFoundExample" }, | ||
"patch-result-invalid-value": { "$ref": "../../global/examples.json#/PatchResultInvalidValueExample" }, | ||
"patch-result-missing-field": { "$ref": "../../global/examples.json#/PatchResultMissingFieldExample" }, | ||
"patch-result-invalid-key": { "$ref": "../../global/examples.json#/PatchResultInvalidKeyExample" }, | ||
"url-not-modifiable": { "$ref": "../../global/examples.json#/SitelinkUrlNotModifiableExample" }, | ||
"data-policy-violation": { "$ref": "../../global/examples.json#/DataPolicyViolationExample" } | ||
} | ||
} | ||
}, | ||
"headers": { | ||
"Content-Language": { | ||
"schema": { "type": "string" }, | ||
"description": "Language code of the language in which error message is provided" | ||
} | ||
} | ||
}, | ||
"SitelinkDeleted": { | ||
"description": "The resource was deleted", | ||
"headers": { | ||
"Content-Language": { | ||
"description": "Language code of the language in which response is provided", | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "string" | ||
}, | ||
"example": "Sitelink deleted" | ||
} | ||
} | ||
}, | ||
"InvalidRemoveSitelinkInput": { | ||
"description": "The request cannot be processed", | ||
"content": { | ||
"application/json": { | ||
"schema": { "$ref": "../../global/response-parts.json#/Error" }, | ||
"examples": { | ||
"invalid-path-parameter": { "$ref": "../../global/examples.json#/InvalidPathParameterExample" }, | ||
"invalid-value": { "$ref": "../../global/examples.json#/InvalidValueExample" }, | ||
"value-too-long": { "$ref": "../../global/examples.json#/ValueTooLongExample" } | ||
} | ||
} | ||
}, | ||
"headers": { | ||
"Content-Language": { | ||
"schema": { "type": "string" }, | ||
"description": "Language code of the language in which error message is provided" | ||
} | ||
} | ||
}, | ||
"InvalidSetSitelinkInput": { | ||
"description": "The request cannot be processed", | ||
"content": { | ||
"application/json": { | ||
"schema": { "$ref": "../../global/response-parts.json#/Error" }, | ||
"examples": { | ||
"invalid-path-parameter": { "$ref": "../../global/examples.json#/InvalidPathParameterExample" }, | ||
"invalid-value": { "$ref": "../../global/examples.json#/InvalidValueExample" }, | ||
"missing-field": { "$ref": "../../global/examples.json#/MissingFieldExample" }, | ||
"value-too-long": { "$ref": "../../global/examples.json#/ValueTooLongExample" }, | ||
"referenced-resource-not-found": { "$ref": "../../global/examples.json#/ReferencedResourceNotFoundExample" }, | ||
"resource-too-large": { "$ref": "../../global/examples.json#/ResourceTooLargeExample" } | ||
} | ||
} | ||
}, | ||
"headers": { | ||
"Content-Language": { | ||
"schema": { "type": "string" }, | ||
"description": "Language code of the language in which error message is provided" | ||
} | ||
} | ||
}, | ||
"InvalidGetSitelinkInput": { | ||
"description": "The request cannot be processed", | ||
"content": { | ||
"application/json": { | ||
"schema": { "$ref": "../../global/response-parts.json#/Error" }, | ||
"examples": { | ||
"invalid-path-parameter": { "$ref": "../../global/examples.json#/InvalidPathParameterExample" } | ||
} | ||
} | ||
}, | ||
"headers": { | ||
"Content-Language": { | ||
"schema": { "type": "string" }, | ||
"description": "Language code of the language in which error message is provided" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.