New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

custom-swagger-router

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-swagger-router

Custom implementation of swagger router

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

A library that simplifies Swagger integrations.

Project Badges

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.

FAQs

Package last updated on 25 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts