Merge pull request #3220 from pjmolina/nodejs-update-sample

Update petstore sample for changes on PR #3212
This commit is contained in:
wing328 2016-06-27 14:59:24 +08:00 committed by GitHub
commit 5a143ec485
2 changed files with 6 additions and 3 deletions

View File

@ -8,11 +8,10 @@ This example uses the [expressjs](http://expressjs.com/) framework. To see how
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md) [README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
### Running the server ### Running the server
To run the server, follow these simple steps: To run the server, run:
``` ```
npm install npm start
node .
``` ```
To view the Swagger UI interface: To view the Swagger UI interface:

View File

@ -3,6 +3,10 @@
"version": "1.0.0", "version": "1.0.0",
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"main": "index.js", "main": "index.js",
"scripts": {
"prestart": "npm install",
"start": "node index.js"
},
"keywords": [ "keywords": [
"swagger" "swagger"
], ],