node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »


Swagger Methods

HTTP methods that are supported by Swagger 2.0

npm License Build Status Dependencies

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


Install using npm:

npm install swagger-methods


var methods = require('swagger-methods');
methods.forEach(function(method) {
// get
// put
// post
// delete
// options
// head
// patch


I welcome any contributions, enhancements, and bug-fixes. File an issue on GitHub and submit a pull request.


To build/test the project locally on your computer:

  1. Clone this repo
    git clone

  2. Install dev dependencies
    npm install

  3. Run the unit tests
    npm test


MIT license. Use it however you want.