forked from loafle/openapi-generator-original
Merge pull request #3220 from pjmolina/nodejs-update-sample
Update petstore sample for changes on PR #3212
This commit is contained in:
commit
5a143ec485
@ -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:
|
||||||
|
@ -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"
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user