1
1
'use strict' ;
2
2
3
- exports . updatePet = function ( args , res , next ) {
3
+ exports . addPet = function ( args , res , next ) {
4
4
/**
5
5
* parameters expected in the args:
6
- * body (Pet)
7
- **/
8
-
9
- var examples = { } ;
6
+ * body (Pet)
7
+ **/
8
+ // no response value expected for this operation
10
9
11
-
12
10
13
11
res . end ( ) ;
14
12
}
15
- exports . addPet = function ( args , res , next ) {
13
+
14
+ exports . deletePet = function ( args , res , next ) {
16
15
/**
17
16
* parameters expected in the args:
18
- * body (Pet )
19
- **/
20
-
21
- var examples = { } ;
17
+ * petId (Long )
18
+ * apiKey (String)
19
+ **/
20
+ // no response value expected for this operation
22
21
23
-
24
22
25
23
res . end ( ) ;
26
24
}
25
+
27
26
exports . findPetsByStatus = function ( args , res , next ) {
28
27
/**
29
28
* parameters expected in the args:
30
- * status (List)
31
- **/
32
-
33
- var examples = { } ;
29
+ * status (List)
30
+ **/
34
31
32
+
33
+ var examples = { } ;
35
34
examples [ 'application/json' ] = [ {
36
35
"tags" : [ {
37
36
"id" : 123456789 ,
@@ -47,8 +46,6 @@ var examples = {};
47
46
"photoUrls" : [ "aeiou" ]
48
47
} ] ;
49
48
50
-
51
-
52
49
if ( Object . keys ( examples ) . length > 0 ) {
53
50
res . setHeader ( 'Content-Type' , 'application/json' ) ;
54
51
res . end ( JSON . stringify ( examples [ Object . keys ( examples ) [ 0 ] ] || { } , null , 2 ) ) ;
@@ -59,14 +56,15 @@ var examples = {};
59
56
60
57
61
58
}
59
+
62
60
exports . findPetsByTags = function ( args , res , next ) {
63
61
/**
64
62
* parameters expected in the args:
65
- * tags (List)
66
- **/
67
-
68
- var examples = { } ;
63
+ * tags (List)
64
+ **/
69
65
66
+
67
+ var examples = { } ;
70
68
examples [ 'application/json' ] = [ {
71
69
"tags" : [ {
72
70
"id" : 123456789 ,
@@ -82,8 +80,6 @@ var examples = {};
82
80
"photoUrls" : [ "aeiou" ]
83
81
} ] ;
84
82
85
-
86
-
87
83
if ( Object . keys ( examples ) . length > 0 ) {
88
84
res . setHeader ( 'Content-Type' , 'application/json' ) ;
89
85
res . end ( JSON . stringify ( examples [ Object . keys ( examples ) [ 0 ] ] || { } , null , 2 ) ) ;
@@ -94,14 +90,15 @@ var examples = {};
94
90
95
91
96
92
}
93
+
97
94
exports . getPetById = function ( args , res , next ) {
98
95
/**
99
96
* parameters expected in the args:
100
- * petId (Long)
101
- **/
102
-
103
- var examples = { } ;
97
+ * petId (Long)
98
+ **/
104
99
100
+
101
+ var examples = { } ;
105
102
examples [ 'application/json' ] = {
106
103
"tags" : [ {
107
104
"id" : 123456789 ,
@@ -117,8 +114,6 @@ var examples = {};
117
114
"photoUrls" : [ "aeiou" ]
118
115
} ;
119
116
120
-
121
-
122
117
if ( Object . keys ( examples ) . length > 0 ) {
123
118
res . setHeader ( 'Content-Type' , 'application/json' ) ;
124
119
res . end ( JSON . stringify ( examples [ Object . keys ( examples ) [ 0 ] ] || { } , null , 2 ) ) ;
@@ -129,58 +124,46 @@ var examples = {};
129
124
130
125
131
126
}
132
- exports . updatePetWithForm = function ( args , res , next ) {
133
- /**
134
- * parameters expected in the args:
135
- * petId (String)
136
- * name (String)
137
- * status (String)
138
- **/
139
127
140
- var examples = { } ;
141
-
142
-
143
-
144
- res . end ( ) ;
145
- }
146
- exports . deletePet = function ( args , res , next ) {
128
+ exports . updatePet = function ( args , res , next ) {
147
129
/**
148
130
* parameters expected in the args:
149
- * petId (Long)
150
- * apiKey (String)
151
- **/
152
-
153
- var examples = { } ;
131
+ * body (Pet)
132
+ **/
133
+ // no response value expected for this operation
154
134
155
-
156
135
157
136
res . end ( ) ;
158
137
}
159
- exports . uploadFile = function ( args , res , next ) {
138
+
139
+ exports . updatePetWithForm = function ( args , res , next ) {
160
140
/**
161
141
* parameters expected in the args:
162
- * petId (Long)
163
- * additionalMetadata (String)
164
- * file (file)
165
- **/
166
-
167
- var examples = { } ;
142
+ * petId (Long)
143
+ * name (String)
144
+ * status (String)
145
+ **/
146
+ // no response value expected for this operation
168
147
169
-
170
148
171
149
res . end ( ) ;
172
150
}
173
- exports . getPetByIdWithByteArray = function ( args , res , next ) {
151
+
152
+ exports . uploadFile = function ( args , res , next ) {
174
153
/**
175
154
* parameters expected in the args:
176
- * petId (Long)
177
- **/
178
-
179
- var examples = { } ;
155
+ * petId (Long)
156
+ * additionalMetadata (String)
157
+ * file (file)
158
+ **/
180
159
181
- examples [ 'application/json' ] = "" ;
182
160
183
-
161
+ var examples = { } ;
162
+ examples [ 'application/json' ] = {
163
+ "message" : "aeiou" ,
164
+ "code" : 123 ,
165
+ "type" : "aeiou"
166
+ } ;
184
167
185
168
if ( Object . keys ( examples ) . length > 0 ) {
186
169
res . setHeader ( 'Content-Type' , 'application/json' ) ;
@@ -192,15 +175,4 @@ var examples = {};
192
175
193
176
194
177
}
195
- exports . addPetUsingByteArray = function ( args , res , next ) {
196
- /**
197
- * parameters expected in the args:
198
- * body (byte[])
199
- **/
200
-
201
- var examples = { } ;
202
-
203
178
204
-
205
- res . end ( ) ;
206
- }
0 commit comments