https://project.mdnd-it.cc/work_packages/94
This commit is contained in:
2025-08-23 04:25:28 +02:00
parent 725516ad6c
commit 19cfa031d0
25823 changed files with 1095587 additions and 2801760 deletions
@@ -0,0 +1,35 @@
Change Log
====================================================================================================
All notable changes will be documented in this file.
Swagger Methods adheres to [Semantic Versioning](http://semver.org/).
[v3.0.0](https://github.com/APIDevTools/swagger-methods/tree/v3.0.0) (2020-03-10)
----------------------------------------------------------------------------------------------------
- Moved Swagger Methods to the [@APIDevTools scope](https://www.npmjs.com/org/apidevtools) on NPM
- The "swagger-methods" NPM package is now just a wrapper around the scoped "@apidevtools/swagger-methods" package
[Full Changelog](https://github.com/APIDevTools/swagger-methods/compare/v2.1.0...v3.0.0)
[v2.0.0](https://github.com/APIDevTools/swagger-methods/tree/v2.0.0) (2019-06-11)
----------------------------------------------------------------------------------------------------
### Breaking Changes
- Dropped support for Node 0.10 through 6.0.0
- Converted to ES6 syntax
[Full Changelog](https://github.com/APIDevTools/swagger-methods/compare/v1.0.1...v2.0.0)
[v1.0.0](https://github.com/APIDevTools/swagger-methods/tree/v1.0.0) (2015-09-07)
----------------------------------------------------------------------------------------------------
Initial release 🎉
+21
View File
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015 James Messinger
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@@ -0,0 +1,83 @@
Swagger Methods
============================
#### HTTP methods that are supported by Swagger 2.0
[![Cross-Platform Compatibility](https://apitools.dev/img/badges/os-badges.svg)](https://github.com/APIDevTools/swagger-methods/actions)
[![Build Status](https://github.com/APIDevTools/swagger-methods/workflows/CI-CD/badge.svg)](https://github.com/APIDevTools/swagger-methods/actions)
[![Coverage Status](https://coveralls.io/repos/github/APIDevTools/swagger-methods/badge.svg?branch=master)](https://coveralls.io/github/APIDevTools/swagger-methods?branch=master)
[![Dependencies](https://david-dm.org/APIDevTools/swagger-methods.svg)](https://david-dm.org/APIDevTools/swagger-methods)
[![npm](https://img.shields.io/npm/v/@apidevtools/swagger-methods.svg?branch=master)](https://www.npmjs.com/package/@apidevtools/swagger-methods)
[![License](https://img.shields.io/npm/l/@apidevtools/swagger-methods.svg)](LICENSE)
[![Buy us a tree](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen)](https://plant.treeware.earth/APIDevTools/swagger-methods)
This is an array of lower-case HTTP method names that are supported by the [Swagger 2.0 spec](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md).
This module is [tested](test/index.spec.js) against the [Swagger 2.0 schema](https://www.npmjs.com/package/swagger-schema-official)
Installation
--------------------------
Install using [npm](https://docs.npmjs.com/about-npm/):
```bash
npm install @apidevtools/swagger-methods
```
Usage
--------------------------
```javascript
var methods = require('@apidevtools/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. [Open an issue](https://github.com/APIDevTools/swagger-methods/issues) on GitHub and [submit a pull request](https://github.com/APIDevTools/swagger-methods/pulls).
#### Building/Testing
To build/test the project locally on your computer:
1. **Clone this repo**<br>
`git clone https://github.com/APIDevTools/swagger-methods.git`
2. **Install dev dependencies**<br>
`npm install`
3. **Run the unit tests**<br>
`npm test`
License
--------------------------
[MIT license](LICENSE). Use it however you want.
This package is [Treeware](http://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/APIDevTools/swagger-methods) to thank us for our work. By contributing to the Treeware forest youll 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 ❤
[![Travis CI](https://jstools.dev/img/badges/travis-ci.svg)](https://travis-ci.com)
[![SauceLabs](https://jstools.dev/img/badges/sauce-labs.svg)](https://saucelabs.com)
[![Coveralls](https://jstools.dev/img/badges/coveralls.svg)](https://coveralls.io)
@@ -0,0 +1,5 @@
"use strict";
module.exports = [
"get", "put", "post", "delete", "options", "head", "patch"
];
@@ -0,0 +1,46 @@
{
"name": "@apidevtools/swagger-methods",
"version": "3.0.2",
"description": "HTTP methods that are supported by Swagger 2.0",
"keywords": [
"swagger",
"http",
"methods"
],
"author": {
"name": "James Messinger",
"url": "https://jamesmessinger.com"
},
"license": "MIT",
"homepage": "https://github.com/APIDevTools/swagger-methods",
"main": "lib/index.js",
"files": [
"lib"
],
"scripts": {
"clean": "shx rm -rf .nyc_output coverage",
"lint": "eslint lib test",
"test": "mocha && npm run lint",
"coverage": "nyc node_modules/mocha/bin/mocha",
"upgrade": "npm-check -u && npm audit fix",
"bump": "bump --tag --push --all",
"release": "npm run upgrade && npm run clean && npm test && npm run bump"
},
"repository": {
"type": "git",
"url": "https://github.com/APIDevTools/swagger-methods.git"
},
"devDependencies": {
"@jsdevtools/eslint-config": "^1.0.4",
"@jsdevtools/version-bump-prompt": "^6.0.6",
"chai": "^4.2.0",
"eslint": "^7.5.0",
"methods": "^1.1.2",
"mocha": "^8.0.1",
"npm-check": "^5.9.0",
"nyc": "^15.1.0",
"shx": "^0.3.2",
"swagger-schema-official": "2.0.0-bab6bed"
},
"dependencies": {}
}