bwae_40_ v4.0.0
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
Class | Method | HTTP request | Description |
---|---|---|---|
Bwae40_.DefaultApi | v1LoginGetAccesskeyUrlGet | GET /v1/login/getAccesskeyUrl | |
Bwae40_.DefaultApi | v1LoginGetUserInfoGet | GET /v1/login/getUserInfo | |
Bwae40_.DefaultApi | v1LoginLogoutGet | GET /v1/login/logout | |
Bwae40_.DefaultApi | v1MessagesCountGet | GET /v1/messages/count | |
Bwae40_.DefaultApi | v1MessagesDelete | DELETE /v1/messages | |
Bwae40_.DefaultApi | v1MessagesGet | GET /v1/messages | |
Bwae40_.DefaultApi | v1MessagesPut | PUT /v1/messages | |
Bwae40_.DefaultApi | v1ModuleGroupsCheckGet | GET /v1/moduleGroups/check | |
Bwae40_.DefaultApi | v1ModuleGroupsgroupIdDelete | DELETE /v1/moduleGroups/:groupId | |
Bwae40_.DefaultApi | v1ModuleGroupsgroupIdModulesGet | GET /v1/moduleGroups/:groupId/modules | |
Bwae40_.DefaultApi | v1ModuleGroupsgroupIdModulesPut | PUT /v1/moduleGroups/:groupId/modules | |
Bwae40_.DefaultApi | v1ModuleGroupsgroupIdPut | PUT /v1/moduleGroups/:groupId | |
Bwae40_.DefaultApi | v1ModulesCheckGet | GET /v1/modules/check | |
Bwae40_.DefaultApi | v1ModulesPost | POST /v1/modules | |
Bwae40_.DefaultApi | v1ModulesmoduleIdDelete | DELETE /v1/modules/:moduleId | |
Bwae40_.DefaultApi | v1ModulesmoduleIdGet | GET /v1/modules/:moduleId | |
Bwae40_.DefaultApi | v1ModulesmoduleIdPut | PUT /v1/modules/:moduleId | |
Bwae40_.DefaultApi | v1ModulesmoduleIdTopPut | PUT /v1/modules/:moduleId/top | |
Bwae40_.DefaultApi | v1ProjectGroupsCheckGet | GET /v1/projectGroups/check | |
Bwae40_.DefaultApi | v1ProjectGroupsGet | GET /v1/projectGroups | |
Bwae40_.DefaultApi | v1ProjectGroupsPost | POST /v1/projectGroups | |
Bwae40_.DefaultApi | v1ProjectGroupsgroupIdDelete | DELETE /v1/projectGroups/:groupId | |
Bwae40_.DefaultApi | v1ProjectGroupsgroupIdProjectsGet | GET /v1/projectGroups/:groupId/projects | |
Bwae40_.DefaultApi | v1ProjectGroupsgroupIdProjectsPut | PUT /v1/projectGroups/:groupId/projects | |
Bwae40_.DefaultApi | v1ProjectGroupsgroupIdPut | PUT /v1/projectGroups/:groupId | |
Bwae40_.DefaultApi | v1ProjectsCheckGet | GET /v1/projects/check | |
Bwae40_.DefaultApi | v1ProjectsGet | GET /v1/projects | |
Bwae40_.DefaultApi | v1ProjectsPost | POST /v1/projects | |
Bwae40_.DefaultApi | v1ProjectsprojectIdConfigGet | GET /v1/projects/:projectId/config | |
Bwae40_.DefaultApi | v1ProjectsprojectIdDelete | DELETE /v1/projects/:projectId | |
Bwae40_.DefaultApi | v1ProjectsprojectIdGet | GET /v1/projects/:projectId | |
Bwae40_.DefaultApi | v1ProjectsprojectIdModuleGroupsGet | GET /v1/projects/:projectId/moduleGroups | |
Bwae40_.DefaultApi | v1ProjectsprojectIdModuleGroupsPost | POST /v1/projects/:projectId/moduleGroups | |
Bwae40_.DefaultApi | v1ProjectsprojectIdModulesGet | GET /v1/projects/:projectId/modules | |
Bwae40_.DefaultApi | v1ProjectsprojectIdPut | PUT /v1/projects/:projectId | |
Bwae40_.DefaultApi | v1ProjectsprojectIdTopPut | PUT /v1/projects/:projectId/top | |
Bwae40_.DefaultApi | v1UsersCurrentUserGet | GET /v1/users/currentUser | |
Bwae40_.DefaultApi | v1UsersPut | PUT /v1/users |
Documentation for Models
- Bwae40_.InlineResponse200
- Bwae40_.InlineResponse2001
- Bwae40_.Message
- Bwae40_.Module
- Bwae40_.ModuleGroup
- Bwae40_.ModuleUser
- Bwae40_.NFS
- Bwae40_.Project
- Bwae40_.ProjectConfigView
- Bwae40_.ProjectGroup
- Bwae40_.ProjectUser
- Bwae40_.User
Documentation for Authorization
All endpoints do not require authorization.
6 years ago