A library that simplifies Swagger integrations.
Перейти к файлу
Jeremy Whitlock 66a86ad09b Updated dependencies 2016-03-23 11:54:40 -06:00
browser Updated dependencies 2016-03-23 11:54:40 -06:00
docs fix issues with encoded slashes in path 2016-03-23 00:57:10 -07:00
lib fix issues with encoded slashes in path 2016-03-23 00:57:10 -07:00
test fix issues with encoded slashes in path 2016-03-23 00:57:10 -07:00
.editorconfig Initial project structure. 2015-04-09 19:24:39 -06:00
.eslintrc Update dependencies 2016-02-25 22:29:39 +02:00
.gitignore First pass at the Operation and Parameter types 2015-05-26 11:45:53 -06:00
.travis.yml Updated dependencies to prepare for #43 2016-01-06 14:07:32 -07:00
CONTRIBUTING.md Added a contributing guide 2016-01-12 12:01:15 -07:00
LICENSE Initial project structure. 2015-04-09 19:24:39 -06:00
README.md README: replace absolute links 2016-02-25 18:57:48 +02:00
RELEASE_NOTES.md Fix Path#getOperation not handling uppercase method 2016-02-13 14:10:09 -07:00
bower.json Updated dependencies 2016-03-23 11:54:40 -06:00
gulpfile.js Removed plugin support 2016-01-11 10:21:42 -07:00
index.js Pass through `params` and `schemaId` for validation errors 2016-02-13 11:54:20 -07:00
package.json Updated dependencies 2016-03-23 11:54:40 -06:00

README.md

A library that simplifies Swagger integrations. This library handles the minutiae of loading Swagger documents (local and remote), resolving references (local, remote), building an object model and providing you with a rich set of APIs for things like Swagger document validation, request/response validation, etc. For more details on the available APIs, please view the API Documentation.

Sway will always be built around the latest stable release of Swagger, which happens to be version 2.0 right now. This means that its APIs and object model will be specific to that version of Swagger and supporting any other versions of Swagger will require a conversion step prior to using Sway.

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:

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: /docs/README

Of course, if you just want a quick link to the API documentation, that would be here:/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.