1.0.9 • Published 5 years ago

swagger-wave-server-generator v1.0.9

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

tools

swagger-wave-server-generator

swagger-wave-server-generator

  • Takes the open API 3.0 JSON for swagger.io and generates the Server side code stubs.

Installation

npm install -g swagger-wave-server-generator

Generate the Code Stubs

Download the JSON OpenAPI 3.0 version of your project definition from the Swagger Website. The file downloaded may have the name.

openapi_petstore.json

Copy this file into the project directory where you want to create and run this project.

swagger-wave-server-generator openapi_petstore.json

Working with the server code stubs

Assuming you have petstore service you will have the followign 4 files in your project directory

petstore_appconfig.json
petstore_appserviceconfig.json
petstore_service.js
petstore_index.js

Petstore service is all the stubs for your project

To run the code

node petstore_index.js

Using

On a web browser on this machine

http://localhost:9999/documentation

or 

http://localhost:9999/test

The sourcecode for this project is available at Github Project

The work is powered by npm package Purplecheerio-wave