swagger-methods

2019-02-13 admin

swagger-methods是什么

什么是swagger-methods,HTTP methods that are supported by Swagger 2.0

swagger-methods使用教程帮助文档

Swagger Methods

HTTP methods that are supported by Swagger 2.0

Cross-Platform Compatibility Build Status Coverage Status

npm Dependencies License

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:

  1. Clone this repo git clone https://github.com/APIDevTools/swagger-methods.git

  2. Install dev dependencies npm install

  3. 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 ❤

Travis CI SauceLabs Coveralls

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-53630.html

文章标题:swagger-methods

回到顶部