swagger-wave-server-generator

1.0.9 • Public • Published

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

Package Sidebar

Install

npm i swagger-wave-server-generator

Weekly Downloads

2

Version

1.0.9

License

MIT

Unpacked Size

9.4 kB

Total Files

5

Last publish

Collaborators

  • supportpurplecheerio