# sibyl_javascript_client

> JS API client For Sibyl2

Latest version **0.13.1** (published 2023-01-31) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install sibyl_javascript_client
pnpm add sibyl_javascript_client
yarn add sibyl_javascript_client
bun add sibyl_javascript_client
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.13.1 |
| Published | 2023-01-31 |
| First published | 2023-01-31 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 191.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | williamfzc |

## Links

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

## Dependencies (2)

- [@babel/cli](https://npm.io/package/@babel/cli.md) ^7.0.0
- [superagent](https://npm.io/package/superagent.md) ^5.3.0

## Recent versions

- 0.13.1 (latest) — 2023-01-31

## README

# openapi_for_sibyl2_server

OpenapiForSibyl2Server - JavaScript client for openapi_for_sibyl2_server
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0
- Package version: 1.0
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
For more information, please visit [https://github.com/williamfzc](https://github.com/williamfzc)

## Installation

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

#### npm

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

Then install it via:

```shell
npm install openapi_for_sibyl2_server --save
```

Finally, you need to build the module:

```shell
npm run build
```

##### 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
```

To use the link you just defined in your project, switch to the directory you want to use your openapi_for_sibyl2_server from, and run:

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

Finally, you need to build the module:

```shell
npm run build
```

#### git

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

```shell
    npm install GIT_USER_ID/GIT_REPO_ID --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):

```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 OpenapiForSibyl2Server = require('openapi_for_sibyl2_server');


var api = new OpenapiForSibyl2Server.BasicQueryApi()
var repo = "repo_example"; // {String} repo
var rev = "rev_example"; // {String} rev
var file = "file_example"; // {String} file
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiV1ClazzGet(repo, rev, file, callback);

```

## Documentation for API Endpoints

All URIs are relative to *http://localhost*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*OpenapiForSibyl2Server.BasicQueryApi* | [**apiV1ClazzGet**](docs/BasicQueryApi.md#apiV1ClazzGet) | **GET** /api/v1/clazz | class query
*OpenapiForSibyl2Server.BasicQueryApi* | [**apiV1FuncGet**](docs/BasicQueryApi.md#apiV1FuncGet) | **GET** /api/v1/func | func query
*OpenapiForSibyl2Server.BasicQueryApi* | [**apiV1FuncctxGet**](docs/BasicQueryApi.md#apiV1FuncctxGet) | **GET** /api/v1/funcctx | func ctx query
*OpenapiForSibyl2Server.OpsApi* | [**opsMonitorUploadGet**](docs/OpsApi.md#opsMonitorUploadGet) | **GET** /ops/monitor/upload | upload status query
*OpenapiForSibyl2Server.OpsApi* | [**opsPingGet**](docs/OpsApi.md#opsPingGet) | **GET** /ops/ping | ping example
*OpenapiForSibyl2Server.OpsApi* | [**opsVersionGet**](docs/OpsApi.md#opsVersionGet) | **GET** /ops/version | sibyl version
*OpenapiForSibyl2Server.ReferenceQueryApi* | [**apiV1ReferenceCountFuncctxGet**](docs/ReferenceQueryApi.md#apiV1ReferenceCountFuncctxGet) | **GET** /api/v1/reference/count/funcctx | funcctx query by ref
*OpenapiForSibyl2Server.ReferenceQueryApi* | [**apiV1ReferenceCountFuncctxReverseGet**](docs/ReferenceQueryApi.md#apiV1ReferenceCountFuncctxReverseGet) | **GET** /api/v1/reference/count/funcctx/reverse | funcctx query by referenced
*OpenapiForSibyl2Server.RegexQueryApi* | [**apiV1RegexClazzGet**](docs/RegexQueryApi.md#apiV1RegexClazzGet) | **GET** /api/v1/regex/clazz | clazz query
*OpenapiForSibyl2Server.RegexQueryApi* | [**apiV1RegexFuncGet**](docs/RegexQueryApi.md#apiV1RegexFuncGet) | **GET** /api/v1/regex/func | func query
*OpenapiForSibyl2Server.RegexQueryApi* | [**apiV1RegexFuncctxGet**](docs/RegexQueryApi.md#apiV1RegexFuncctxGet) | **GET** /api/v1/regex/funcctx | func ctx query
*OpenapiForSibyl2Server.ScopeApi* | [**apiV1FileGet**](docs/ScopeApi.md#apiV1FileGet) | **GET** /api/v1/file | file query by repo and rev
*OpenapiForSibyl2Server.ScopeApi* | [**apiV1RepoDelete**](docs/ScopeApi.md#apiV1RepoDelete) | **DELETE** /api/v1/repo | repo delete
*OpenapiForSibyl2Server.ScopeApi* | [**apiV1RepoGet**](docs/ScopeApi.md#apiV1RepoGet) | **GET** /api/v1/repo | query all the repos
*OpenapiForSibyl2Server.ScopeApi* | [**apiV1RevDelete**](docs/ScopeApi.md#apiV1RevDelete) | **DELETE** /api/v1/rev | rev delete
*OpenapiForSibyl2Server.ScopeApi* | [**apiV1RevGet**](docs/ScopeApi.md#apiV1RevGet) | **GET** /api/v1/rev | rev query by repo name
*OpenapiForSibyl2Server.SignatureQueryApi* | [**apiV1SignatureFuncGet**](docs/SignatureQueryApi.md#apiV1SignatureFuncGet) | **GET** /api/v1/signature/func | func query
*OpenapiForSibyl2Server.SignatureQueryApi* | [**apiV1SignatureFuncctxChainGet**](docs/SignatureQueryApi.md#apiV1SignatureFuncctxChainGet) | **GET** /api/v1/signature/funcctx/chain | funcctx chain query
*OpenapiForSibyl2Server.SignatureQueryApi* | [**apiV1SignatureFuncctxGet**](docs/SignatureQueryApi.md#apiV1SignatureFuncctxGet) | **GET** /api/v1/signature/funcctx | funcctx query
*OpenapiForSibyl2Server.SignatureQueryApi* | [**apiV1SignatureFuncctxRchainGet**](docs/SignatureQueryApi.md#apiV1SignatureFuncctxRchainGet) | **GET** /api/v1/signature/funcctx/rchain | funcctx reverse chain query
*OpenapiForSibyl2Server.SignatureQueryApi* | [**apiV1SignatureRegexFuncGet**](docs/SignatureQueryApi.md#apiV1SignatureRegexFuncGet) | **GET** /api/v1/signature/regex/func | func query
*OpenapiForSibyl2Server.StatQueryApi* | [**apiV1RevStatGet**](docs/StatQueryApi.md#apiV1RevStatGet) | **GET** /api/v1/rev/stat | rev stat


## Documentation for Models

 - [OpenapiForSibyl2Server.CorePoint](docs/CorePoint.md)
 - [OpenapiForSibyl2Server.CoreSpan](docs/CoreSpan.md)
 - [OpenapiForSibyl2Server.ObjectFunctionContextSlimWithSignature](docs/ObjectFunctionContextSlimWithSignature.md)
 - [OpenapiForSibyl2Server.ObjectFunctionWithSignature](docs/ObjectFunctionWithSignature.md)
 - [OpenapiForSibyl2Server.ObjectRevInfo](docs/ObjectRevInfo.md)
 - [OpenapiForSibyl2Server.ObjectValueUnit](docs/ObjectValueUnit.md)
 - [OpenapiForSibyl2Server.ServiceContextTree](docs/ServiceContextTree.md)
 - [OpenapiForSibyl2Server.ServiceFunctionContextChain](docs/ServiceFunctionContextChain.md)
 - [OpenapiForSibyl2Server.ServiceRevStat](docs/ServiceRevStat.md)
 - [OpenapiForSibyl2Server.Sibyl2ClazzWithPath](docs/Sibyl2ClazzWithPath.md)
 - [OpenapiForSibyl2Server.Sibyl2FunctionContextSlim](docs/Sibyl2FunctionContextSlim.md)
 - [OpenapiForSibyl2Server.Sibyl2FunctionWithPath](docs/Sibyl2FunctionWithPath.md)


## Documentation for Authorization

All endpoints do not require authorization.

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