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.
Install using npm:
npm install @apidevtools/swagger-methods
var methods = ;methods;// get// put// post// delete// options// head// patch
To build/test the project locally on your computer:
Clone this repo
git clone https://github.com/APIDevTools/swagger-methods.git
Install dev dependencies
Run the unit tests
MIT license. Use it however you want.
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
Big Thanks To
Thanks to these awesome companies for their support of Open Source developers ❤