# javascript-client

> SwaggerDemoApiDoc - JavaScript client for swagger_demo_api_doc This is a restful api document of Swagger Demo. This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

Latest version **1.0.2** (published 2021-03-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install javascript-client
pnpm add javascript-client
yarn add javascript-client
bun add javascript-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-03-31 |
| First published | 2021-03-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 78 |
| Unpacked size | 80 KB |
| Known vulnerabilities | 0 (+10 in 4 direct dependencies) |
| Install scripts | no |
| Maintainers | qpliu |

## Links

- npm: https://www.npmjs.com/package/javascript-client
- npm.io page: https://npm.io/package/javascript-client

## Dependencies (78)

- [ms](https://npm.io/package/ms.md) ^0.7.1
- [qs](https://npm.io/package/qs.md) ^6.10.1
- [has](https://npm.io/package/has.md) ^1.0.3
- [diff](https://npm.io/package/diff.md) ^1.4.0
- [glob](https://npm.io/package/glob.md) ^3.2.3
- [jade](https://npm.io/package/jade.md) ^0.26.3
- [mime](https://npm.io/package/mime.md) ^1.6.0
- [util](https://npm.io/package/util.md) ^0.12.3
- [debug](https://npm.io/package/debug.md) ^2.2.0
- [growl](https://npm.io/package/growl.md) ^1.8.1
- [lolex](https://npm.io/package/lolex.md) ^1.3.2
- [sinon](https://npm.io/package/sinon.md) ^1.17.3
- [extend](https://npm.io/package/extend.md) ^3.0.2
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.0
- [samsam](https://npm.io/package/samsam.md) ^1.1.2
- [foreach](https://npm.io/package/foreach.md) ^2.0.5
- [isarray](https://npm.io/package/isarray.md) ^1.0.0
- [methods](https://npm.io/package/methods.md) ^1.1.2
- [mime-db](https://npm.io/package/mime-db.md) ^1.46.0
- [sigmund](https://npm.io/package/sigmund.md) ^1.0.1
- [asynckit](https://npm.io/package/asynckit.md) ^0.4.0
- [formatio](https://npm.io/package/formatio.md) ^1.1.1
- [inherits](https://npm.io/package/inherits.md) ^2.0.4
- [is-regex](https://npm.io/package/is-regex.md) ^1.1.2
- [minimist](https://npm.io/package/minimist.md) ^0.0.8
- [call-bind](https://npm.io/package/call-bind.md) ^1.0.2
- [commander](https://npm.io/package/commander.md) ^2.3.0
- [cookiejar](https://npm.io/package/cookiejar.md) ^2.1.2
- [expect.js](https://npm.io/package/expect.js.md) ^0.3.1
- [form-data](https://npm.io/package/form-data.md) ^2.5.1
- [is-bigint](https://npm.io/package/is-bigint.md) ^1.0.1
- [is-string](https://npm.io/package/is-string.md) ^1.0.5
- [is-symbol](https://npm.io/package/is-symbol.md) ^1.0.3
- [lru-cache](https://npm.io/package/lru-cache.md) ^2.7.3
- [minimatch](https://npm.io/package/minimatch.md) ^0.2.14
- [formidable](https://npm.io/package/formidable.md) ^1.2.2
- [mime-types](https://npm.io/package/mime-types.md) ^2.1.29
- [superagent](https://npm.io/package/superagent.md) ^3.7.0
- [es-abstract](https://npm.io/package/es-abstract.md) ^1.18.0
- [graceful-fs](https://npm.io/package/graceful-fs.md) ^2.0.3
- [has-bigints](https://npm.io/package/has-bigints.md) ^1.0.1
- [has-symbols](https://npm.io/package/has-symbols.md) ^1.0.2
- [is-callable](https://npm.io/package/is-callable.md) ^1.2.3
- [object-keys](https://npm.io/package/object-keys.md) ^1.1.1
- [querystring](https://npm.io/package/querystring.md) ^0.2.0
- [safe-buffer](https://npm.io/package/safe-buffer.md) ^5.1.2
- [array-filter](https://npm.io/package/array-filter.md) ^1.0.0
- [core-util-is](https://npm.io/package/core-util-is.md) ^1.0.2
- [is-arguments](https://npm.io/package/is-arguments.md) ^1.1.0
- [side-channel](https://npm.io/package/side-channel.md) ^1.0.4
- [function-bind](https://npm.io/package/function-bind.md) ^1.1.1
- [get-intrinsic](https://npm.io/package/get-intrinsic.md) ^1.1.1
- [object.assign](https://npm.io/package/object.assign.md) ^4.1.2
- [delayed-stream](https://npm.io/package/delayed-stream.md) ^1.0.0
- [is-date-object](https://npm.io/package/is-date-object.md) ^1.0.2
- [is-typed-array](https://npm.io/package/is-typed-array.md) ^1.1.5
- [object-inspect](https://npm.io/package/object-inspect.md) ^1.9.0
- [string_decoder](https://npm.io/package/string_decoder.md) ^1.1.1
- [supports-color](https://npm.io/package/supports-color.md) ^1.2.0
- [util-deprecate](https://npm.io/package/util-deprecate.md) ^1.0.2
- [combined-stream](https://npm.io/package/combined-stream.md) ^1.0.8
- [es-to-primitive](https://npm.io/package/es-to-primitive.md) ^1.2.1
- [readable-stream](https://npm.io/package/readable-stream.md) ^2.3.7
- [unbox-primitive](https://npm.io/package/unbox-primitive.md) ^1.0.1
- [is-negative-zero](https://npm.io/package/is-negative-zero.md) ^2.0.1
- [is-number-object](https://npm.io/package/is-number-object.md) ^1.0.4
- [component-emitter](https://npm.io/package/component-emitter.md) ^1.3.0
- [define-properties](https://npm.io/package/define-properties.md) ^1.1.3
- [is-boolean-object](https://npm.io/package/is-boolean-object.md) ^1.1.0
- [javascript-client](https://npm.io/package/javascript-client.md) ^1.0.0
- [which-typed-array](https://npm.io/package/which-typed-array.md) ^1.1.4
- [escape-string-regexp](https://npm.io/package/escape-string-regexp.md) ^1.0.2
- [process-nextick-args](https://npm.io/package/process-nextick-args.md) ^2.0.1
- [is-generator-function](https://npm.io/package/is-generator-function.md) ^1.0.8
- [which-boxed-primitive](https://npm.io/package/which-boxed-primitive.md) ^1.0.2
- [available-typed-arrays](https://npm.io/package/available-typed-arrays.md) ^1.0.2
- [string.prototype.trimend](https://npm.io/package/string.prototype.trimend.md) ^1.0.4
- [string.prototype.trimstart](https://npm.io/package/string.prototype.trimstart.md) ^1.0.4

## Recent versions

- 1.0.2 (latest) — 2021-03-31
- 1.0.1 — 2021-03-31
- 1.0.0 — 2021-03-31

## README

# swagger_demo_api_doc

SwaggerDemoApiDoc - JavaScript client for swagger_demo_api_doc
This is a restful api document of Swagger Demo.
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 1.0
- Package version: 1.0
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen

## Installation

### For [Node.js](https://nodejs.org/)

#### npm

To publish the library as a [npm](
,
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).

Then install it via:

```shell
npm install swagger_demo_api_doc --save
```

##### Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing 
into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:

```shell
npm install
```

Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:

```shell
npm link
```

Finally, switch to the directory you want to use your swagger_demo_api_doc from, and run:

```shell
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
```

You should now be able to `require('swagger_demo_api_doc')` in javascript files from the directory you ran the last 
command above from.

#### git
#
If the library is hosted at a git repository, e.g.
https://github.com/YOUR_USERNAME/swagger_demo_api_doc
then install it via:

```shell
    npm install YOUR_USERNAME/swagger_demo_api_doc --save
```

### For browser

The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
the above steps with Node.js and installing browserify with `npm install -g browserify`,
perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually 
use this library):

```shell
browserify main.js > bundle.js
```

Then include *bundle.js* in the HTML pages.

### Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error:
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
the following section to your webpack config:

```javascript
module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}
```

## Getting Started

Please follow the [installation](#installation) instruction and execute the following JS code:

```javascript
var SwaggerDemoApiDoc = require('swagger_demo_api_doc');

var api = new SwaggerDemoApiDoc.BasicErrorControllerApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.errorUsingDELETE(callback);

```

## Documentation for API Endpoints

All URIs are relative to *https://localhost:8001*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*SwaggerDemoApiDoc.BasicErrorControllerApi* | [**errorUsingDELETE**](docs/BasicErrorControllerApi.md#errorUsingDELETE) | **DELETE** /error | error
*SwaggerDemoApiDoc.BasicErrorControllerApi* | [**errorUsingGET**](docs/BasicErrorControllerApi.md#errorUsingGET) | **GET** /error | error
*SwaggerDemoApiDoc.BasicErrorControllerApi* | [**errorUsingHEAD**](docs/BasicErrorControllerApi.md#errorUsingHEAD) | **HEAD** /error | error
*SwaggerDemoApiDoc.BasicErrorControllerApi* | [**errorUsingOPTIONS**](docs/BasicErrorControllerApi.md#errorUsingOPTIONS) | **OPTIONS** /error | error
*SwaggerDemoApiDoc.BasicErrorControllerApi* | [**errorUsingPATCH**](docs/BasicErrorControllerApi.md#errorUsingPATCH) | **PATCH** /error | error
*SwaggerDemoApiDoc.BasicErrorControllerApi* | [**errorUsingPOST**](docs/BasicErrorControllerApi.md#errorUsingPOST) | **POST** /error | error
*SwaggerDemoApiDoc.BasicErrorControllerApi* | [**errorUsingPUT**](docs/BasicErrorControllerApi.md#errorUsingPUT) | **PUT** /error | error
*SwaggerDemoApiDoc.UserControllerApi* | [**deleteUsingDELETE**](docs/UserControllerApi.md#deleteUsingDELETE) | **DELETE** /user/delete/{id} | delete of method
*SwaggerDemoApiDoc.UserControllerApi* | [**findUsingGET**](docs/UserControllerApi.md#findUsingGET) | **GET** /user/find/{id} | find of method
*SwaggerDemoApiDoc.UserControllerApi* | [**saveUsingPOST**](docs/UserControllerApi.md#saveUsingPOST) | **POST** /user/save | save of method


## Documentation for Models

 - [SwaggerDemoApiDoc.ModelAndView](docs/ModelAndView.md)
 - [SwaggerDemoApiDoc.User](docs/User.md)
 - [SwaggerDemoApiDoc.View](docs/View.md)


## Documentation for Authorization

 All endpoints do not require authorization.

---
_Source: https://npm.io/package/javascript-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
