Update rate header descriptions and sandbox extension

This commit is contained in:
Abby Menting 2021-08-24 11:10:41 -07:00
parent 8cbcbe3cac
commit 9aa35978a3
1 changed files with 160 additions and 144 deletions

View File

@ -277,17 +277,18 @@
"description": "Unique request reference identifier."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"createdBefore": {
"value": "2019-09-21T00:00:00"
},
"createdAfter": {
"value": "2019-08-20T14:00:00"
},
"includeDetails": {
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"createdBefore": {
"value": "2019-09-21T00:00:00"
},
"createdAfter": {
"value": "2019-08-20T14:00:00"
},
"includeDetails": {
"value": "true"
},
"limit": {
@ -994,7 +995,8 @@
}
}
}
]
]
}
},
"400": {
"description": "Request has missing or invalid parameters and cannot be parsed.",
@ -1021,29 +1023,31 @@
"description": "Unique request reference identifier."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"createdBefore": {
"value": "2019-09-2100:00:00"
},
"createdAfter": {
"value": "2019-08-20T14:00:00"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"createdBefore": {
"value": "2019-09-2100:00:00"
},
"createdAfter": {
"value": "2019-08-20T14:00:00"
}
}
}
},
"response": {
"errors": [
{
"code": "InvalidRequest",
"message": "The request is invalid.",
"details": ""
}
]
"response": {
"errors": [
{
"code": "InvalidRequest",
"message": "The request is invalid.",
"details": ""
}
]
}
}
}
]
]
}
},
"403": {
"description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
@ -1053,7 +1057,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "TPS rate customer is authorized for."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1085,7 +1089,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1101,7 +1105,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1117,7 +1121,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1133,7 +1137,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1224,17 +1228,18 @@
"description": "Unique request reference identifier."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"purchaseOrderNumber": {
"value": "4Z32PABC"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"purchaseOrderNumber": {
"value": "4Z32PABC"
}
}
}
},
"response": {
"payload": {
},
"response": {
"payload": {
"purchaseOrderNumber": "4Z32PABC",
"purchaseOrderState": "Closed",
"orderDetails": {
@ -1392,7 +1397,8 @@
}
}
}
]
]
}
},
"400": {
"description": "Request has missing or invalid parameters and cannot be parsed.",
@ -1409,26 +1415,28 @@
"description": "Unique request reference identifier."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"purchaseOrderNumber": {
"value": "null"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"purchaseOrderNumber": {
"value": "null"
}
}
},
"response": {
"errors": [
{
"code": "InvalidRequest",
"message": "Request is missing or has invalid parameters",
"details": "purchaseOrderNumber cannot be null"
}
]
}
},
"response": {
"errors": [
{
"code": "InvalidRequest",
"message": "Request is missing or has invalid parameters",
"details": "purchaseOrderNumber cannot be null"
}
]
}
}
]
]
}
},
"401": {
"description": "The request's Authorization header is not formatted correctly or does not contain a valid token.",
@ -1438,7 +1446,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1454,7 +1462,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "TPS rate customer is authorized for."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1486,7 +1494,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1502,7 +1510,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1518,7 +1526,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1534,7 +1542,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1631,17 +1639,18 @@
"description": "Unique request reference identifier."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"body": {
"value": {
"acknowledgements": [
{
"purchaseOrderNumber": "TestOrder202",
"sellingParty": {
"partyId": "API01"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"body": {
"value": {
"acknowledgements": [
{
"purchaseOrderNumber": "TestOrder202",
"sellingParty": {
"partyId": "API01"
},
"acknowledgementDate": "2021-03-12T17:35:26.308Z",
"items": [
@ -1687,7 +1696,8 @@
}
}
}
]
]
}
},
"400": {
"description": "Request has missing or invalid parameters and cannot be parsed.",
@ -1704,33 +1714,35 @@
"description": "Unique request reference identifier."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"body": {
"value": {
"acknowledgements": [
{
"purchaseOrderNumber": "TestOrder400",
"sellingParty": {}
}
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"body": {
"value": {
"acknowledgements": [
{
"purchaseOrderNumber": "TestOrder400",
"sellingParty": {}
}
]
}
}
}
},
"response": {
"errors": [
{
"code": "InvalidInput",
"message": "The content of element 'sellingParty' is not complete. One of '{partyId, address, taxInfo}' is expected.",
"details": ""
}
]
"response": {
"errors": [
{
"code": "InvalidInput",
"message": "The content of element 'sellingParty' is not complete. One of '{partyId, address, taxInfo}' is expected.",
"details": ""
}
]
}
}
}
]
]
}
},
"403": {
"description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
@ -1740,7 +1752,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "TPS rate customer is authorized for."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1772,7 +1784,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1788,7 +1800,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1804,7 +1816,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1820,7 +1832,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -1836,7 +1848,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -2015,17 +2027,18 @@
"description": "Unique request reference identifier."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"createdBefore": {
"value": "2020-08-18T00:00:00"
},
"createdAfter": {
"value": "2020-08-17T14:00:00"
},
"limit": {
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"createdBefore": {
"value": "2020-08-18T00:00:00"
},
"createdAfter": {
"value": "2020-08-17T14:00:00"
},
"limit": {
"value": 1
}
}
@ -2582,7 +2595,8 @@
}
}
}
]
]
}
},
"400": {
"description": "Request has missing or invalid parameters and cannot be parsed.",
@ -2599,26 +2613,28 @@
"description": "Unique request reference identifier."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"updatedBefore": {
"value": "2019-09-2100:00:00"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"updatedBefore": {
"value": "2019-09-2100:00:00"
}
}
},
"response": {
"errors": [
{
"code": "InvalidRequest",
"message": "The request is invalid.",
"details": ""
}
]
}
},
"response": {
"errors": [
{
"code": "InvalidRequest",
"message": "The request is invalid.",
"details": ""
}
]
}
}
]
]
}
},
"403": {
"description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
@ -2628,7 +2644,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "TPS rate customer is authorized for."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -2660,7 +2676,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -2676,7 +2692,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -2692,7 +2708,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
@ -2708,7 +2724,7 @@
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",