0.13.1 • Published 1 year ago

sibyl_javascript_client v0.13.1

Weekly downloads
-
License
Apache 2.0
Repository
-
Last release
1 year ago

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

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install openapi_for_sibyl2_server --save

Finally, you need to build the module:

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:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

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:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

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:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. 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):

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:

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

Getting Started

Please follow the installation instruction and execute the following JS code:

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

ClassMethodHTTP requestDescription
OpenapiForSibyl2Server.BasicQueryApiapiV1ClazzGetGET /api/v1/clazzclass query
OpenapiForSibyl2Server.BasicQueryApiapiV1FuncGetGET /api/v1/funcfunc query
OpenapiForSibyl2Server.BasicQueryApiapiV1FuncctxGetGET /api/v1/funcctxfunc ctx query
OpenapiForSibyl2Server.OpsApiopsMonitorUploadGetGET /ops/monitor/uploadupload status query
OpenapiForSibyl2Server.OpsApiopsPingGetGET /ops/pingping example
OpenapiForSibyl2Server.OpsApiopsVersionGetGET /ops/versionsibyl version
OpenapiForSibyl2Server.ReferenceQueryApiapiV1ReferenceCountFuncctxGetGET /api/v1/reference/count/funcctxfuncctx query by ref
OpenapiForSibyl2Server.ReferenceQueryApiapiV1ReferenceCountFuncctxReverseGetGET /api/v1/reference/count/funcctx/reversefuncctx query by referenced
OpenapiForSibyl2Server.RegexQueryApiapiV1RegexClazzGetGET /api/v1/regex/clazzclazz query
OpenapiForSibyl2Server.RegexQueryApiapiV1RegexFuncGetGET /api/v1/regex/funcfunc query
OpenapiForSibyl2Server.RegexQueryApiapiV1RegexFuncctxGetGET /api/v1/regex/funcctxfunc ctx query
OpenapiForSibyl2Server.ScopeApiapiV1FileGetGET /api/v1/filefile query by repo and rev
OpenapiForSibyl2Server.ScopeApiapiV1RepoDeleteDELETE /api/v1/reporepo delete
OpenapiForSibyl2Server.ScopeApiapiV1RepoGetGET /api/v1/repoquery all the repos
OpenapiForSibyl2Server.ScopeApiapiV1RevDeleteDELETE /api/v1/revrev delete
OpenapiForSibyl2Server.ScopeApiapiV1RevGetGET /api/v1/revrev query by repo name
OpenapiForSibyl2Server.SignatureQueryApiapiV1SignatureFuncGetGET /api/v1/signature/funcfunc query
OpenapiForSibyl2Server.SignatureQueryApiapiV1SignatureFuncctxChainGetGET /api/v1/signature/funcctx/chainfuncctx chain query
OpenapiForSibyl2Server.SignatureQueryApiapiV1SignatureFuncctxGetGET /api/v1/signature/funcctxfuncctx query
OpenapiForSibyl2Server.SignatureQueryApiapiV1SignatureFuncctxRchainGetGET /api/v1/signature/funcctx/rchainfuncctx reverse chain query
OpenapiForSibyl2Server.SignatureQueryApiapiV1SignatureRegexFuncGetGET /api/v1/signature/regex/funcfunc query
OpenapiForSibyl2Server.StatQueryApiapiV1RevStatGetGET /api/v1/rev/statrev stat

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

0.13.1

1 year ago