forked from loafle/openapi-generator-original
rebuilt sample
This commit is contained in:
@@ -1,37 +1,36 @@
|
||||
'use strict';
|
||||
|
||||
exports.updatePet = function(args, res, next) {
|
||||
/**
|
||||
* parameters expected in the args:
|
||||
* body (Pet)
|
||||
**/
|
||||
|
||||
var examples = {};
|
||||
|
||||
|
||||
|
||||
res.end();
|
||||
}
|
||||
exports.addPet = function(args, res, next) {
|
||||
/**
|
||||
* parameters expected in the args:
|
||||
* body (Pet)
|
||||
**/
|
||||
|
||||
var examples = {};
|
||||
* body (Pet)
|
||||
**/
|
||||
// no response value expected for this operation
|
||||
|
||||
|
||||
|
||||
res.end();
|
||||
}
|
||||
|
||||
exports.deletePet = function(args, res, next) {
|
||||
/**
|
||||
* parameters expected in the args:
|
||||
* petId (Long)
|
||||
* apiKey (String)
|
||||
**/
|
||||
// no response value expected for this operation
|
||||
|
||||
|
||||
res.end();
|
||||
}
|
||||
|
||||
exports.findPetsByStatus = function(args, res, next) {
|
||||
/**
|
||||
* parameters expected in the args:
|
||||
* status (List)
|
||||
**/
|
||||
|
||||
var examples = {};
|
||||
* status (List)
|
||||
**/
|
||||
|
||||
|
||||
var examples = {};
|
||||
examples['application/json'] = [ {
|
||||
"tags" : [ {
|
||||
"id" : 123456789,
|
||||
@@ -47,8 +46,6 @@ var examples = {};
|
||||
"photoUrls" : [ "aeiou" ]
|
||||
} ];
|
||||
|
||||
|
||||
|
||||
if(Object.keys(examples).length > 0) {
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
res.end(JSON.stringify(examples[Object.keys(examples)[0]] || {}, null, 2));
|
||||
@@ -59,14 +56,15 @@ var examples = {};
|
||||
|
||||
|
||||
}
|
||||
|
||||
exports.findPetsByTags = function(args, res, next) {
|
||||
/**
|
||||
* parameters expected in the args:
|
||||
* tags (List)
|
||||
**/
|
||||
|
||||
var examples = {};
|
||||
* tags (List)
|
||||
**/
|
||||
|
||||
|
||||
var examples = {};
|
||||
examples['application/json'] = [ {
|
||||
"tags" : [ {
|
||||
"id" : 123456789,
|
||||
@@ -82,8 +80,6 @@ var examples = {};
|
||||
"photoUrls" : [ "aeiou" ]
|
||||
} ];
|
||||
|
||||
|
||||
|
||||
if(Object.keys(examples).length > 0) {
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
res.end(JSON.stringify(examples[Object.keys(examples)[0]] || {}, null, 2));
|
||||
@@ -94,14 +90,15 @@ var examples = {};
|
||||
|
||||
|
||||
}
|
||||
|
||||
exports.getPetById = function(args, res, next) {
|
||||
/**
|
||||
* parameters expected in the args:
|
||||
* petId (Long)
|
||||
**/
|
||||
|
||||
var examples = {};
|
||||
* petId (Long)
|
||||
**/
|
||||
|
||||
|
||||
var examples = {};
|
||||
examples['application/json'] = {
|
||||
"tags" : [ {
|
||||
"id" : 123456789,
|
||||
@@ -117,8 +114,6 @@ var examples = {};
|
||||
"photoUrls" : [ "aeiou" ]
|
||||
};
|
||||
|
||||
|
||||
|
||||
if(Object.keys(examples).length > 0) {
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
res.end(JSON.stringify(examples[Object.keys(examples)[0]] || {}, null, 2));
|
||||
@@ -129,58 +124,46 @@ var examples = {};
|
||||
|
||||
|
||||
}
|
||||
|
||||
exports.updatePet = function(args, res, next) {
|
||||
/**
|
||||
* parameters expected in the args:
|
||||
* body (Pet)
|
||||
**/
|
||||
// no response value expected for this operation
|
||||
|
||||
|
||||
res.end();
|
||||
}
|
||||
|
||||
exports.updatePetWithForm = function(args, res, next) {
|
||||
/**
|
||||
* parameters expected in the args:
|
||||
* petId (String)
|
||||
* name (String)
|
||||
* status (String)
|
||||
**/
|
||||
|
||||
var examples = {};
|
||||
* petId (Long)
|
||||
* name (String)
|
||||
* status (String)
|
||||
**/
|
||||
// no response value expected for this operation
|
||||
|
||||
|
||||
|
||||
res.end();
|
||||
}
|
||||
exports.deletePet = function(args, res, next) {
|
||||
/**
|
||||
* parameters expected in the args:
|
||||
* petId (Long)
|
||||
* apiKey (String)
|
||||
**/
|
||||
|
||||
var examples = {};
|
||||
|
||||
|
||||
|
||||
res.end();
|
||||
}
|
||||
exports.uploadFile = function(args, res, next) {
|
||||
/**
|
||||
* parameters expected in the args:
|
||||
* petId (Long)
|
||||
* additionalMetadata (String)
|
||||
* file (file)
|
||||
**/
|
||||
|
||||
var examples = {};
|
||||
* petId (Long)
|
||||
* additionalMetadata (String)
|
||||
* file (file)
|
||||
**/
|
||||
|
||||
|
||||
|
||||
res.end();
|
||||
}
|
||||
exports.getPetByIdWithByteArray = function(args, res, next) {
|
||||
/**
|
||||
* parameters expected in the args:
|
||||
* petId (Long)
|
||||
**/
|
||||
|
||||
var examples = {};
|
||||
|
||||
examples['application/json'] = "";
|
||||
|
||||
|
||||
var examples = {};
|
||||
examples['application/json'] = {
|
||||
"message" : "aeiou",
|
||||
"code" : 123,
|
||||
"type" : "aeiou"
|
||||
};
|
||||
|
||||
if(Object.keys(examples).length > 0) {
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
@@ -192,15 +175,4 @@ var examples = {};
|
||||
|
||||
|
||||
}
|
||||
exports.addPetUsingByteArray = function(args, res, next) {
|
||||
/**
|
||||
* parameters expected in the args:
|
||||
* body (byte[])
|
||||
**/
|
||||
|
||||
var examples = {};
|
||||
|
||||
|
||||
|
||||
res.end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user