From b2506ab5982b2d8a589e7ba266b19b9cee7990da Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Tue, 20 Oct 2015 10:32:19 -0700 Subject: [PATCH] rebuilt --- .../server/petstore/nodejs/api/swagger.json | 62 +++++++++---------- .../nodejs/controllers/StoreService.js | 4 +- 2 files changed, 30 insertions(+), 36 deletions(-) diff --git a/samples/server/petstore/nodejs/api/swagger.json b/samples/server/petstore/nodejs/api/swagger.json index 4f091973cf2..4c0ad6ea42f 100644 --- a/samples/server/petstore/nodejs/api/swagger.json +++ b/samples/server/petstore/nodejs/api/swagger.json @@ -97,10 +97,6 @@ ], "responses": { - "404": { - "description" : "User not found" -} - , "200": { "description" : "successful operation", "schema" : { @@ -123,6 +119,10 @@ "400": { "description" : "Invalid username supplied" } + , + "404": { + "description" : "User not found" +} } @@ -154,13 +154,13 @@ ], "responses": { - "404": { - "description" : "User not found" -} - , "400": { "description" : "Invalid user supplied" } + , + "404": { + "description" : "User not found" +} } @@ -183,13 +183,13 @@ ], "responses": { - "404": { - "description" : "User not found" -} - , "400": { "description" : "Invalid username supplied" } + , + "404": { + "description" : "User not found" +} } @@ -312,16 +312,16 @@ ], "responses": { - "405": { - "description" : "Validation exception" + "400": { + "description" : "Invalid ID supplied" } , "404": { "description" : "Pet not found" } , - "400": { - "description" : "Invalid ID supplied" + "405": { + "description" : "Validation exception" } @@ -416,9 +416,6 @@ "description" : "Status values that need to be considered for filter", "required" : false, "type" : "array", - "items" : { - "type" : "string" - }, "collectionFormat" : "multi", "default" : "available" } @@ -460,9 +457,6 @@ "description" : "Tags to filter by", "required" : false, "type" : "array", - "items" : { - "type" : "string" - }, "collectionFormat" : "multi" } @@ -508,10 +502,6 @@ ], "responses": { - "404": { - "description" : "Pet not found" -} - , "200": { "description" : "successful operation", "schema" : { @@ -522,6 +512,10 @@ "400": { "description" : "Invalid ID supplied" } + , + "404": { + "description" : "Pet not found" +} } @@ -621,10 +615,6 @@ ], "responses": { - "404": { - "description" : "Order not found" -} - , "200": { "description" : "successful operation", "schema" : { @@ -635,6 +625,10 @@ "400": { "description" : "Invalid ID supplied" } + , + "404": { + "description" : "Order not found" +} } @@ -657,13 +651,13 @@ ], "responses": { - "404": { - "description" : "Order not found" -} - , "400": { "description" : "Invalid ID supplied" } + , + "404": { + "description" : "Order not found" +} } diff --git a/samples/server/petstore/nodejs/controllers/StoreService.js b/samples/server/petstore/nodejs/controllers/StoreService.js index 27c18517ff5..e00a6aee9b9 100644 --- a/samples/server/petstore/nodejs/controllers/StoreService.js +++ b/samples/server/petstore/nodejs/controllers/StoreService.js @@ -24,7 +24,7 @@ exports.placeOrder = function(body) { "complete" : true, "status" : "aeiou", "quantity" : 123, - "shipDate" : "2015-10-08T15:56:08.367+0000" + "shipDate" : "2015-10-20T06:12:23.907+0000" }; @@ -43,7 +43,7 @@ exports.getOrderById = function(orderId) { "complete" : true, "status" : "aeiou", "quantity" : 123, - "shipDate" : "2015-10-08T15:56:08.371+0000" + "shipDate" : "2015-10-20T06:12:23.911+0000" };