forked from loafle/openapi-generator-original
rebuilt sample
This commit is contained in:
112
samples/server/petstore/nodejs/controllers/PetService.js
Normal file
112
samples/server/petstore/nodejs/controllers/PetService.js
Normal file
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.updatePet = function(body) {
|
||||
|
||||
var examples = {};
|
||||
|
||||
|
||||
|
||||
}
|
||||
exports.addPet = function(body) {
|
||||
|
||||
var examples = {};
|
||||
|
||||
|
||||
|
||||
}
|
||||
exports.findPetsByStatus = function(status) {
|
||||
|
||||
var examples = {};
|
||||
|
||||
examples['application/json'] = [ {
|
||||
"tags" : [ {
|
||||
"id" : 123456789,
|
||||
"name" : "aeiou"
|
||||
} ],
|
||||
"id" : 123456789,
|
||||
"category" : {
|
||||
"id" : 123456789,
|
||||
"name" : "aeiou"
|
||||
},
|
||||
"status" : "aeiou",
|
||||
"name" : "doggie",
|
||||
"photoUrls" : [ "aeiou" ]
|
||||
} ];
|
||||
|
||||
|
||||
|
||||
if(Object.keys(examples).length > 0)
|
||||
return examples[Object.keys(examples)[0]];
|
||||
|
||||
}
|
||||
exports.findPetsByTags = function(tags) {
|
||||
|
||||
var examples = {};
|
||||
|
||||
examples['application/json'] = [ {
|
||||
"tags" : [ {
|
||||
"id" : 123456789,
|
||||
"name" : "aeiou"
|
||||
} ],
|
||||
"id" : 123456789,
|
||||
"category" : {
|
||||
"id" : 123456789,
|
||||
"name" : "aeiou"
|
||||
},
|
||||
"status" : "aeiou",
|
||||
"name" : "doggie",
|
||||
"photoUrls" : [ "aeiou" ]
|
||||
} ];
|
||||
|
||||
|
||||
|
||||
if(Object.keys(examples).length > 0)
|
||||
return examples[Object.keys(examples)[0]];
|
||||
|
||||
}
|
||||
exports.getPetById = function(petId) {
|
||||
|
||||
var examples = {};
|
||||
|
||||
examples['application/json'] = {
|
||||
"tags" : [ {
|
||||
"id" : 123456789,
|
||||
"name" : "aeiou"
|
||||
} ],
|
||||
"id" : 123456789,
|
||||
"category" : {
|
||||
"id" : 123456789,
|
||||
"name" : "aeiou"
|
||||
},
|
||||
"status" : "aeiou",
|
||||
"name" : "doggie",
|
||||
"photoUrls" : [ "aeiou" ]
|
||||
};
|
||||
|
||||
|
||||
|
||||
if(Object.keys(examples).length > 0)
|
||||
return examples[Object.keys(examples)[0]];
|
||||
|
||||
}
|
||||
exports.updatePetWithForm = function(petId, name, status) {
|
||||
|
||||
var examples = {};
|
||||
|
||||
|
||||
|
||||
}
|
||||
exports.deletePet = function(api_key, petId) {
|
||||
|
||||
var examples = {};
|
||||
|
||||
|
||||
|
||||
}
|
||||
exports.uploadFile = function(petId, additionalMetadata, file) {
|
||||
|
||||
var examples = {};
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user