OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
email
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
Api
/
test_cases
/
protocols
/
input
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/10/2024 05:37:54 AM
rwxr-xr-x
📄
ec2.json
10.9 KB
07/10/2024 05:37:54 AM
rw-r--r--
📄
json.json
20.21 KB
07/10/2024 05:37:54 AM
rw-r--r--
📄
query.json
20.94 KB
07/10/2024 05:37:54 AM
rw-r--r--
📄
rest-json.json
46.08 KB
07/10/2024 05:37:54 AM
rw-r--r--
📄
rest-xml.json
45 KB
07/10/2024 05:37:54 AM
rw-r--r--
Editing: json.json
Close
[ { "description": "Scalar members", "metadata": { "protocol": "json", "jsonVersion": "1.1", "targetPrefix": "com.amazonaws.foo" }, "shapes": { "InputShape": { "type": "structure", "members": { "Name": { "shape": "StringType" } } }, "StringType": { "type": "string" } }, "cases": [ { "given": { "input": { "shape": "InputShape" }, "name": "OperationName", "http": { "method": "POST" } }, "params": { "Name": "myname" }, "serialized": { "body": "{\"Name\": \"myname\"}", "headers": { "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" }, "uri": "/" } } ] }, { "description": "Timestamp values", "metadata": { "protocol": "json", "jsonVersion": "1.1", "targetPrefix": "com.amazonaws.foo" }, "shapes": { "InputShape": { "type": "structure", "members": { "TimeArg": { "shape": "TimestampType" }, "TimeCustom": { "timestampFormat": "rfc822", "shape": "TimestampType" }, "TimeFormat": { "shape": "TimestampFormatType" } } }, "TimestampFormatType": { "timestampFormat": "rfc822", "type": "timestamp" }, "TimestampType": { "type": "timestamp" } }, "cases": [ { "given": { "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "TimeArg": 1422172800, "TimeCustom": 1422172800, "TimeFormat": 1422172800 }, "serialized": { "body": "{\"TimeArg\": 1422172800, \"TimeCustom\": \"Sun, 25 Jan 2015 08:00:00 GMT\", \"TimeFormat\": \"Sun, 25 Jan 2015 08:00:00 GMT\"}", "headers": { "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" }, "uri": "/" } } ] }, { "description": "Base64 encoded Blobs", "metadata": { "protocol": "json", "jsonVersion": "1.1", "targetPrefix": "com.amazonaws.foo" }, "shapes": { "InputShape": { "type": "structure", "members": { "BlobArg": { "shape": "BlobType" }, "BlobMap": { "shape": "BlobMapType" } } }, "BlobType": { "type": "blob" }, "BlobMapType": { "type": "map", "key": {"shape": "StringType"}, "value": {"shape": "BlobType"} }, "StringType": { "type": "string" } }, "cases": [ { "given": { "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "BlobArg": "foo" }, "serialized": { "body": "{\"BlobArg\": \"Zm9v\"}", "headers": { "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" }, "uri": "/" } }, { "given": { "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "BlobMap": { "key1": "foo", "key2": "bar" } }, "serialized": { "body": "{\"BlobMap\": {\"key1\": \"Zm9v\", \"key2\": \"YmFy\"}}", "headers": { "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" }, "uri": "/" } } ] }, { "description": "Nested blobs", "metadata": { "protocol": "json", "jsonVersion": "1.1", "targetPrefix": "com.amazonaws.foo" }, "shapes": { "InputShape": { "type": "structure", "members": { "ListParam": { "shape": "ListOfStructures" } } }, "ListOfStructures": { "type": "list", "member": { "shape": "BlobType" } }, "BlobType": { "type": "blob" } }, "cases": [ { "given": { "http": { "method": "POST" }, "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "ListParam": ["foo", "bar"] }, "serialized": { "body": "{\"ListParam\": [\"Zm9v\", \"YmFy\"]}", "uri": "/", "headers": { "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" } } } ] }, { "description": "Recursive shapes", "metadata": { "protocol": "json", "jsonVersion": "1.1", "targetPrefix": "com.amazonaws.foo" }, "shapes": { "InputShape": { "type": "structure", "members": { "RecursiveStruct": { "shape": "RecursiveStructType" } } }, "RecursiveStructType": { "type": "structure", "members": { "NoRecurse": { "shape": "StringType" }, "RecursiveStruct": { "shape": "RecursiveStructType" }, "RecursiveList": { "shape": "RecursiveListType" }, "RecursiveMap": { "shape": "RecursiveMapType" } } }, "RecursiveListType": { "type": "list", "member": { "shape": "RecursiveStructType" } }, "RecursiveMapType": { "type": "map", "key": { "shape": "StringType" }, "value": { "shape": "RecursiveStructType" } }, "StringType": { "type": "string" } }, "cases": [ { "given": { "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "RecursiveStruct": { "NoRecurse": "foo" } }, "serialized": { "uri": "/", "headers": { "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" }, "body": "{\"RecursiveStruct\": {\"NoRecurse\": \"foo\"}}" } }, { "given": { "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "RecursiveStruct": { "RecursiveStruct": { "NoRecurse": "foo" } } }, "serialized": { "uri": "/", "headers": { "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" }, "body": "{\"RecursiveStruct\": {\"RecursiveStruct\": {\"NoRecurse\": \"foo\"}}}" } }, { "given": { "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "RecursiveStruct": { "RecursiveStruct": { "RecursiveStruct": { "RecursiveStruct": { "NoRecurse": "foo" } } } } }, "serialized": { "uri": "/", "headers": { "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" }, "body": "{\"RecursiveStruct\": {\"RecursiveStruct\": {\"RecursiveStruct\": {\"RecursiveStruct\": {\"NoRecurse\": \"foo\"}}}}}" } }, { "given": { "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "RecursiveStruct": { "RecursiveList": [ { "NoRecurse": "foo" }, { "NoRecurse": "bar" } ] } }, "serialized": { "uri": "/", "headers": { "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" }, "body": "{\"RecursiveStruct\": {\"RecursiveList\": [{\"NoRecurse\": \"foo\"}, {\"NoRecurse\": \"bar\"}]}}" } }, { "given": { "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "RecursiveStruct": { "RecursiveList": [ { "NoRecurse": "foo" }, { "RecursiveStruct": { "NoRecurse": "bar" } } ] } }, "serialized": { "uri": "/", "headers": { "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" }, "body": "{\"RecursiveStruct\": {\"RecursiveList\": [{\"NoRecurse\": \"foo\"}, {\"RecursiveStruct\": {\"NoRecurse\": \"bar\"}}]}}" } }, { "given": { "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "RecursiveStruct": { "RecursiveMap": { "foo": { "NoRecurse": "foo" }, "bar": { "NoRecurse": "bar" } } } }, "serialized": { "uri": "/", "headers": { "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" }, "body": "{\"RecursiveStruct\": {\"RecursiveMap\": {\"foo\": {\"NoRecurse\": \"foo\"}, \"bar\": {\"NoRecurse\": \"bar\"}}}}" } } ] }, { "description": "Empty maps", "metadata": { "protocol": "json", "jsonVersion": "1.1", "targetPrefix": "com.amazonaws.foo" }, "shapes": { "InputShape": { "type": "structure", "members": { "Map": { "shape": "MapType" } } }, "MapType": { "type": "map", "key": { "shape": "StringType" }, "value": { "shape": "StringType" } }, "StringType": { "type": "string" } }, "cases": [ { "given": { "input": { "shape": "InputShape" }, "name": "OperationName", "http": { "method": "POST" } }, "params": { "Map": {} }, "serialized": { "body": "{\"Map\": {}}", "headers": { "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" }, "uri": "/" } } ] }, { "description": "Idempotency token auto fill", "metadata": { "protocol": "json", "apiVersion": "2014-01-01", "jsonVersion": "1.1" }, "shapes": { "InputShape": { "type": "structure", "members": { "Token": { "shape": "StringType", "idempotencyToken": true } } }, "StringType": { "type": "string" } }, "cases": [ { "given": { "input": { "shape": "InputShape" }, "http": { "method": "POST" }, "name": "OperationName" }, "params": { "Token": "abc123" }, "serialized": { "uri": "/", "headers": {}, "body": "{\"Token\": \"abc123\"}" } }, { "given": { "input": { "shape": "InputShape" }, "http": { "method": "POST" }, "name": "OperationName" }, "params": { }, "serialized": { "uri": "/", "headers": {}, "body": "{\"Token\": \"00000000-0000-4000-8000-000000000000\"}" } } ] }, { "description": "Endpoint host trait static prefix", "metadata": { "protocol": "json", "jsonVersion": "1.1", "targetPrefix": "com.amazonaws.foo" }, "clientEndpoint": "https://service.region.amazonaws.com", "shapes": { "StaticInputShape": { "type": "structure", "members": { "Name": { "shape": "StringType" } } }, "MemberRefInputShape": { "type": "structure", "members": { "Name": { "shape": "StringType", "hostLabel": true } } }, "StringType": { "type": "string" } }, "cases": [ { "given": { "name": "StaticOp", "input": { "shape": "StaticInputShape" }, "http": { "method": "POST" }, "endpoint":{ "hostPrefix": "data-" } }, "params": { "Name": "myname" }, "serialized": { "headers": { "X-Amz-Target": "com.amazonaws.foo.StaticOp", "Content-Type": "application/x-amz-json-1.1" }, "uri": "/", "body": "{\"Name\": \"myname\"}", "host": "data-service.region.amazonaws.com" } }, { "given": { "name": "MemberRefOp", "input": { "shape": "MemberRefInputShape" }, "http": { "method": "POST" }, "endpoint":{ "hostPrefix": "foo-{Name}." } }, "params": { "Name": "myname" }, "serialized": { "headers": { "X-Amz-Target": "com.amazonaws.foo.MemberRefOp", "Content-Type": "application/x-amz-json-1.1" }, "uri": "/", "body": "{\"Name\": \"myname\"}", "host": "foo-myname.service.region.amazonaws.com" } } ] }, { "description": "Serializes document with standalone primitive as part of the JSON request payload with no escaping.", "metadata": { "protocol": "rest-json", "apiVersion": "2014-01-01" }, "shapes": { "InputShape": { "type": "structure", "members": { "documentValue": { "shape": "DocumentType" } } }, "DocumentType": { "type": "structure", "document": true } }, "cases": [ { "given": { "http": { "method": "POST", "requestUri": "/InlineDocument" }, "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "documentValue": "foo" }, "serialized": { "body": "{\"documentValue\": \"foo\"}", "uri": "/InlineDocument" } }, { "given": { "http": { "method": "POST", "requestUri": "/InlineDocument" }, "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "documentValue": 123 }, "serialized": { "body": "{\"documentValue\": 123}", "uri": "/InlineDocument" } }, { "given": { "http": { "method": "POST", "requestUri": "/InlineDocument" }, "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "documentValue": true }, "serialized": { "body": "{\"documentValue\": true}", "uri": "/InlineDocument" } }, { "given": { "http": { "method": "POST", "requestUri": "/InlineDocument" }, "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "documentValue": "" }, "serialized": { "body": "{\"documentValue\": \"\"}", "uri": "/InlineDocument" } } ] }, { "description": "Serializes inline documents as part of the JSON request payload with no escaping.", "metadata": { "protocol": "rest-json", "apiVersion": "2014-01-01" }, "shapes": { "InputShape": { "type": "structure", "members": { "documentValue": { "shape": "DocumentType" } } }, "DocumentType": { "type": "structure", "document": true } }, "cases": [ { "given": { "http": { "method": "POST", "requestUri": "/InlineDocument" }, "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "documentValue": {"foo": "bar"} }, "serialized": { "body": "{\"documentValue\": {\"foo\": \"bar\"}}", "uri": "/InlineDocument" } } ] }, { "description": "Serializes aggregate documents as part of the JSON request payload with no escaping.", "metadata": { "protocol": "rest-json", "apiVersion": "2014-01-01" }, "shapes": { "InputShape": { "type": "structure", "members": { "documentValue": { "shape": "DocumentType" } } }, "DocumentType": { "type": "structure", "document": true } }, "cases": [ { "given": { "http": { "method": "POST", "requestUri": "/InlineDocument" }, "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "documentValue": { "childDocument1": {"foo": "test"}, "childDocument2": {"bar": true}, "childDocument3": 123 } }, "serialized": { "body": "{\"documentValue\": {\"childDocument1\": {\"foo\": \"test\"}, \"childDocument2\": {\"bar\": true}, \"childDocument3\": 123}}", "uri": "/InlineDocument" } }, { "given": { "http": { "method": "POST", "requestUri": "/InlineDocument" }, "input": { "shape": "InputShape" }, "name": "OperationName" }, "params": { "documentValue": [ {"foo": "test"}, {"bar": true}, 123 ] }, "serialized": { "body": "{\"documentValue\": [{\"foo\": \"test\"}, {\"bar\": true}, 123]}", "uri": "/InlineDocument" } } ] } ]