Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 3.26 KB

README.md

File metadata and controls

68 lines (46 loc) · 3.26 KB

A library that simplifies Swagger integrations.

Project Badges

  • Build status: Build Status
  • Dependencies: Dependencies
  • Developer dependencies: Dev Dependencies
  • Downloads: NPM Downloads Per Month
  • Gitter: Join the chat at https://gitter.im/apigee-127/sway
  • License: License
  • Version: NPM Version

Project Status

Up until 1.0.0, the API is unstable and can change without warning. While we will do our best to ensure this does not happen, as we begin to use sway we may run into situations where changing the API is required.

Installation

sway is available for both Node.js and the browser. Installation instructions for each environment are below.

Browser

Installation for browser applications can be done via Bower or by downloading a standalone binary.

Using Bower

bower install sway --save

Standalone Binaries

The standalone binaries come in two flavors:

Note: I realize these browser binaries are not small. For the most part, this is due to a library we are using for creating mock/sample parameters/responses. json-schema-faker uses faker.js which ships with a number of locales, which we currently are not using. Attempts to package sway in a way to make it smaller led to a json-schema-faker packaging issue that is unresolved. In the future, if we were to expose this local support we would need these locales in the binary anyways so at the end of the day I've marked this as unavoidable.

Node.js

Installation for Node.js applications can be done via NPM.

npm install sway --save

Documentation

The documentation for this project can be found here: https://github.com/apigee-127/sway/blob/master/docs/README.md Of course, if you just want a quick link to the API documentation, that would be here: https://github.com/apigee-127/sway/blob/master/docs/API.md

Contributing

This project uses Gulp for building so npm install -g gulp once you clone this project. Running gulp in the project root will lint check the source code and run the unit tests.