Update NodeJS server petstore samples with OAS2, OAS3 (#113)

* update nodejs server oas2

* update nodejs server petstore with oas3

* update nodejs google cloud with oas2 petstore

* update nodejs server google function with oas3
This commit is contained in:
William Cheng
2018-04-17 22:58:13 +08:00
committed by GitHub
parent dc0cbd23b6
commit ddf10b98dc
19 changed files with 1698 additions and 153 deletions

View File

@@ -65,12 +65,11 @@ exports.getOrderById = function(orderId) {
/**
* Place an order for a pet
*
*
* body Order order placed for purchasing the pet
* order Order order placed for purchasing the pet
* returns Order
**/
exports.placeOrder = function(body) {
exports.placeOrder = function(order) {
return new Promise(function(resolve, reject) {
var examples = {};
examples['application/json'] = {