4.0.0 • Published 6 years ago

bwae_40_ v4.0.0

Weekly downloads
-
License
Unlicense
Repository
-
Last release
6 years ago

bwae40

Bwae40 - JavaScript client for bwae_40 BWAE stands for Bewinner Web Application Engine 本接口由Portal提供,由前端模块调用。 This SDK is automatically generated by the Swagger Codegen project:

  • API version: 4.0.0
  • Package version: 4.0.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

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

npm install

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

npm link

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

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('bwae_40_') 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/YOURUSERNAME/bwae_40 then install it via:

    npm install YOUR_USERNAME/bwae_40_ --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, that's to say your javascript file where you actually use this library):

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 Bwae40_ = require('bwae_40_');

var api = new Bwae40_.DefaultApi()

var opts = { 
  'userType': "userType_example", // {String} 用户类别,对应用户列表返回的companyid信息
  'checkType': "checkType_example" // {String} 类型
};

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

Documentation for API Endpoints

All URIs are relative to https://localhost

ClassMethodHTTP requestDescription
Bwae40_.DefaultApiv1LoginGetAccesskeyUrlGetGET /v1/login/getAccesskeyUrl
Bwae40_.DefaultApiv1LoginGetUserInfoGetGET /v1/login/getUserInfo
Bwae40_.DefaultApiv1LoginLogoutGetGET /v1/login/logout
Bwae40_.DefaultApiv1MessagesCountGetGET /v1/messages/count
Bwae40_.DefaultApiv1MessagesDeleteDELETE /v1/messages
Bwae40_.DefaultApiv1MessagesGetGET /v1/messages
Bwae40_.DefaultApiv1MessagesPutPUT /v1/messages
Bwae40_.DefaultApiv1ModuleGroupsCheckGetGET /v1/moduleGroups/check
Bwae40_.DefaultApiv1ModuleGroupsgroupIdDeleteDELETE /v1/moduleGroups/:groupId
Bwae40_.DefaultApiv1ModuleGroupsgroupIdModulesGetGET /v1/moduleGroups/:groupId/modules
Bwae40_.DefaultApiv1ModuleGroupsgroupIdModulesPutPUT /v1/moduleGroups/:groupId/modules
Bwae40_.DefaultApiv1ModuleGroupsgroupIdPutPUT /v1/moduleGroups/:groupId
Bwae40_.DefaultApiv1ModulesCheckGetGET /v1/modules/check
Bwae40_.DefaultApiv1ModulesPostPOST /v1/modules
Bwae40_.DefaultApiv1ModulesmoduleIdDeleteDELETE /v1/modules/:moduleId
Bwae40_.DefaultApiv1ModulesmoduleIdGetGET /v1/modules/:moduleId
Bwae40_.DefaultApiv1ModulesmoduleIdPutPUT /v1/modules/:moduleId
Bwae40_.DefaultApiv1ModulesmoduleIdTopPutPUT /v1/modules/:moduleId/top
Bwae40_.DefaultApiv1ProjectGroupsCheckGetGET /v1/projectGroups/check
Bwae40_.DefaultApiv1ProjectGroupsGetGET /v1/projectGroups
Bwae40_.DefaultApiv1ProjectGroupsPostPOST /v1/projectGroups
Bwae40_.DefaultApiv1ProjectGroupsgroupIdDeleteDELETE /v1/projectGroups/:groupId
Bwae40_.DefaultApiv1ProjectGroupsgroupIdProjectsGetGET /v1/projectGroups/:groupId/projects
Bwae40_.DefaultApiv1ProjectGroupsgroupIdProjectsPutPUT /v1/projectGroups/:groupId/projects
Bwae40_.DefaultApiv1ProjectGroupsgroupIdPutPUT /v1/projectGroups/:groupId
Bwae40_.DefaultApiv1ProjectsCheckGetGET /v1/projects/check
Bwae40_.DefaultApiv1ProjectsGetGET /v1/projects
Bwae40_.DefaultApiv1ProjectsPostPOST /v1/projects
Bwae40_.DefaultApiv1ProjectsprojectIdConfigGetGET /v1/projects/:projectId/config
Bwae40_.DefaultApiv1ProjectsprojectIdDeleteDELETE /v1/projects/:projectId
Bwae40_.DefaultApiv1ProjectsprojectIdGetGET /v1/projects/:projectId
Bwae40_.DefaultApiv1ProjectsprojectIdModuleGroupsGetGET /v1/projects/:projectId/moduleGroups
Bwae40_.DefaultApiv1ProjectsprojectIdModuleGroupsPostPOST /v1/projects/:projectId/moduleGroups
Bwae40_.DefaultApiv1ProjectsprojectIdModulesGetGET /v1/projects/:projectId/modules
Bwae40_.DefaultApiv1ProjectsprojectIdPutPUT /v1/projects/:projectId
Bwae40_.DefaultApiv1ProjectsprojectIdTopPutPUT /v1/projects/:projectId/top
Bwae40_.DefaultApiv1UsersCurrentUserGetGET /v1/users/currentUser
Bwae40_.DefaultApiv1UsersPutPUT /v1/users

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.