forked from loafle/openapi-generator-original
rename nodejs to nodejs-server
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user