forked from loafle/openapi-generator-original
update sample for nodejs
This commit is contained in:
parent
8e9e3a6171
commit
725df15dd5
@ -24,7 +24,7 @@ exports.placeOrder = function(body) {
|
||||
"complete" : true,
|
||||
"status" : "aeiou",
|
||||
"quantity" : 123,
|
||||
"shipDate" : "2015-09-03T14:34:08.343+0000"
|
||||
"shipDate" : "2015-10-08T15:56:08.367+0000"
|
||||
};
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ exports.getOrderById = function(orderId) {
|
||||
"complete" : true,
|
||||
"status" : "aeiou",
|
||||
"quantity" : 123,
|
||||
"shipDate" : "2015-09-03T14:34:08.347+0000"
|
||||
"shipDate" : "2015-10-08T15:56:08.371+0000"
|
||||
};
|
||||
|
||||
|
||||
|
@ -31,8 +31,8 @@ swaggerTools.initializeMiddleware(swaggerDoc, function (middleware) {
|
||||
app.use(middleware.swaggerUi());
|
||||
|
||||
// Start the server
|
||||
http.createServer(app).listen(8080, function () {
|
||||
console.log('Your server is listening on port %d (http://localhost:%d)', 8080, 8080);
|
||||
console.log('Swagger-ui is available on http://localhost:%d/docs', 8080);
|
||||
http.createServer(app).listen(serverPort, function () {
|
||||
console.log('Your server is listening on port %d (http://localhost:%d)', serverPort, serverPort);
|
||||
console.log('Swagger-ui is available on http://localhost:%d/docs', serverPort);
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user