forked from loafle/openapi-generator-original
62 lines
1006 B
JavaScript
62 lines
1006 B
JavaScript
'use strict';
|
|
|
|
exports.getInventory = function() {
|
|
|
|
var examples = {};
|
|
|
|
examples['application/json'] = {
|
|
"key" : 123
|
|
};
|
|
|
|
|
|
|
|
if(Object.keys(examples).length > 0)
|
|
return examples[Object.keys(examples)[0]];
|
|
|
|
}
|
|
exports.placeOrder = function(body) {
|
|
|
|
var examples = {};
|
|
|
|
examples['application/json'] = {
|
|
"id" : 123456789,
|
|
"petId" : 123456789,
|
|
"complete" : true,
|
|
"status" : "aeiou",
|
|
"quantity" : 123,
|
|
"shipDate" : "2015-10-08T15:56:08.367+0000"
|
|
};
|
|
|
|
|
|
|
|
if(Object.keys(examples).length > 0)
|
|
return examples[Object.keys(examples)[0]];
|
|
|
|
}
|
|
exports.getOrderById = function(orderId) {
|
|
|
|
var examples = {};
|
|
|
|
examples['application/json'] = {
|
|
"id" : 123456789,
|
|
"petId" : 123456789,
|
|
"complete" : true,
|
|
"status" : "aeiou",
|
|
"quantity" : 123,
|
|
"shipDate" : "2015-10-08T15:56:08.371+0000"
|
|
};
|
|
|
|
|
|
|
|
if(Object.keys(examples).length > 0)
|
|
return examples[Object.keys(examples)[0]];
|
|
|
|
}
|
|
exports.deleteOrder = function(orderId) {
|
|
|
|
var examples = {};
|
|
|
|
|
|
|
|
}
|