Package Exports
- swagger-methods
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (swagger-methods) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Swagger Methods
HTTP methods that are supported by Swagger 2.0
This is an array of lower-case HTTP method names that are supported by the Swagger 2.0 spec.
This module is tested against the Swagger 2.0 schema
Installation
Install using npm:
npm install swagger-methods
Usage
var methods = require('swagger-methods');
methods.forEach(function(method) {
console.log(method);
});
// get
// put
// post
// delete
// options
// head
// patch
Contributing
I welcome any contributions, enhancements, and bug-fixes. File an issue on GitHub and submit a pull request.
Building/Testing
To build/test the project locally on your computer:
Clone this repo
git clone https://github.com/APIDevTools/swagger-methods.git
Install dev dependencies
npm install
Run the unit tests
npm test
License
MIT license. Use it however you want.
Big Thanks To
Thanks to these awesome companies for their support of Open Source developers ❤