rename nodejs to nodejs-server

This commit is contained in:
wing328
2016-01-24 22:08:05 +08:00
parent 3086bb624f
commit 27d1e380b8
9 changed files with 113 additions and 9 deletions

View File

@@ -168,5 +168,39 @@ var examples = {};
res.end();
}
exports.getPetByIdWithByteArray = function(args, res, next) {
/**
* parameters expected in the args:
* petId (Long)
**/
var examples = {};
examples['application/json'] = "";
if(Object.keys(examples).length > 0) {
res.setHeader('Content-Type', 'application/json');
res.end(JSON.stringify(examples[Object.keys(examples)[0]] || {}, null, 2));
}
else {
res.end();
}
}
exports.addPetUsingByteArray = function(args, res, next) {
/**
* parameters expected in the args:
* body (byte[])
**/
var examples = {};
res.end();
}