@microsoft.azure/autorest.testserver
Version:
This project contains a set of OpenAPI definitions and a server implementing the corresponding API. Use this to test compliance of AutoRest generators.
27 lines • 1.86 kB
JSON
{
"id" : "a1eb5913-20e1-4e86-968b-d66c5a56ac72",
"name" : "complex_polymorphicrecursive_valid",
"request" : {
"url" : "/complex/polymorphicrecursive/valid",
"method" : "PUT",
"bodyPatterns" : [ {
"equalToJson" : "{\"species\": \"king\", \"length\": 1.0, \"siblings\": [{\"species\": \"predator\", \"length\": 20.0, \"siblings\": [{\"species\": \"coho\", \"length\": 2.0, \"siblings\": [{\"species\": \"predator\", \"length\": 20.0, \"fishtype\": \"shark\", \"age\": 6, \"birthday\": \"2012-01-05T01:00:00.000Z\"}, {\"species\": \"dangerous\", \"length\": 10.0, \"fishtype\": \"sawshark\", \"age\": 105, \"birthday\": \"1900-01-05T01:00:00.000Z\", \"picture\": \"//////4=\"}], \"fishtype\": \"salmon\", \"location\": \"atlantic\", \"iswild\": true}, {\"species\": \"dangerous\", \"length\": 10.0, \"siblings\": [], \"fishtype\": \"sawshark\", \"age\": 105, \"birthday\": \"1900-01-05T01:00:00.000Z\", \"picture\": \"//////4=\"}], \"fishtype\": \"shark\", \"age\": 6, \"birthday\": \"2012-01-05T01:00:00.000Z\"}, {\"species\": \"dangerous\", \"length\": 10.0, \"siblings\": [], \"fishtype\": \"sawshark\", \"age\": 105, \"birthday\": \"1900-01-05T01:00:00.000Z\", \"picture\": \"//////4=\"}], \"fishtype\": \"salmon\", \"location\": \"alaska\", \"iswild\": true}",
"ignoreArrayOrder" : true,
"ignoreExtraElements" : true
} ]
},
"response" : {
"status" : 200,
"headers" : {
"X-Powered-By" : "Express",
"Vary" : "Origin",
"Access-Control-Allow-Credentials" : "true",
"Access-Control-Expose-Headers" : "x-ms-request-id,foo-request-id,Content-Type,value,Location,Azure-AsyncOperation,Retry-After",
"Date" : "Thu, 18 Oct 2018 17:39:21 GMT",
"Connection" : "keep-alive"
}
},
"uuid" : "a1eb5913-20e1-4e86-968b-d66c5a56ac72",
"persistent" : true,
"insertionIndex" : 174
}