1.0.7 • Published 3 years ago

kosmos-dubhe-api v1.0.7

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

kosmos-dubhe-api

KosmosDubheApi - JavaScript client for kosmos-dubhe-api dubhe organzation demo This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.2
  • Package version: 1.0.2
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen For more information, please visit http://www.openkosmos.com

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 kosmos-dubhe-api --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 kosmos-dubhe-api 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 KosmosDubheApi = require('kosmos-dubhe-api');


var api = new KosmosDubheApi.AccessControllerApi()
api.fetchAccessesUsingPOST().then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
KosmosDubheApi.AccessControllerApifetchAccessesUsingPOSTPOST /rest/access/fetch获取权限
KosmosDubheApi.AccessControllerApifetchMenuUsingPOSTPOST /rest/access/menu获取菜单
KosmosDubheApi.AuthControllerApiloginUsingPOSTPOST /auth/login认证接口
KosmosDubheApi.CdcReportControllerApiaddCdcPOST /api/cdc/add保存报卡
KosmosDubheApi.CdcReportControllerApiaddCdc1POST /rest/cdc/add保存报卡
KosmosDubheApi.CdcReportControllerApiaddCdcMultiPOST /api/cdc/addMulti/{immediately}保存报卡
KosmosDubheApi.CdcReportControllerApiaddCdcMulti1POST /rest/cdc/addMulti/{immediately}保存报卡
KosmosDubheApi.CdcReportControllerApicdcReportImmediatelyGET /api/cdc/organzation/immediately批量报卡
KosmosDubheApi.CdcReportControllerApicdcReportImmediately1GET /rest/cdc/organzation/immediately批量报卡
KosmosDubheApi.CdcReportControllerApicdcsettingGET /api/cdc/setting获取CDC设置
KosmosDubheApi.CdcReportControllerApicdcsetting1GET /rest/cdc/setting获取CDC设置
KosmosDubheApi.CdcReportControllerApidetailCdcGET /api/cdc/detail/{id}获取CDC请求详情
KosmosDubheApi.CdcReportControllerApidetailCdc1GET /rest/cdc/detail/{id}获取CDC请求详情
KosmosDubheApi.CdcReportControllerApilistCdcGET /api/cdc/list获取CDC全部上报请求
KosmosDubheApi.CdcReportControllerApilistCdc1GET /rest/cdc/list获取CDC全部上报请求
KosmosDubheApi.CdcReportControllerApiremoveCdcDELETE /api/cdc/delete/{id}撤销报卡
KosmosDubheApi.CdcReportControllerApiremoveCdc1DELETE /rest/cdc/delete/{id}撤销报卡
KosmosDubheApi.CdcReportControllerApireportCdcPOST /api/cdc/organzation/{id}上报CDC
KosmosDubheApi.CdcReportControllerApireportCdc1POST /rest/cdc/organzation/{id}上报CDC
KosmosDubheApi.CdcReportControllerApitestDetailCdcGET /api/cdc/testDetailCdc/{id}获取CDC请求详情
KosmosDubheApi.CdcReportControllerApitestDetailCdc1GET /rest/cdc/testDetailCdc/{id}获取CDC请求详情
KosmosDubheApi.CdcReportControllerApitestPublishUsingGETGET /api/cdc/organzation/testPublishtestPublish
KosmosDubheApi.CdcReportControllerApitestPublishUsingGET1GET /rest/cdc/organzation/testPublishtestPublish
KosmosDubheApi.CdcReportControllerApivpnstatusGET /api/cdc/vpnstatus获取CDC VPN状态
KosmosDubheApi.CdcReportControllerApivpnstatus1GET /rest/cdc/vpnstatus获取CDC VPN状态
KosmosDubheApi.LoginControllerApirefreshTokenUsingPOSTPOST /rest/login/refresh/token登录接口
KosmosDubheApi.MonitorStatusDemoControllerApifetchMonitorStatusPageSqlUsingGETGET /rest/test/fetchMonitorStatusPageSql测试fetch分页sql
KosmosDubheApi.MonitorStatusDemoControllerApifetchMonitorStatusPageUsingGETGET /rest/test/fetchMonitorStatusPage测试fetch分页nosql
KosmosDubheApi.MonitorStatusDemoControllerApifetchMonitorStatusUsingGETGET /rest/test/fetchMonitorStatus测试fetch
KosmosDubheApi.OrgDepartmentControllerApidisableDepartmentPUT /rest/department/disable/{departmentCode}禁用部门
KosmosDubheApi.OrgDepartmentControllerApienableDepartmentPUT /rest/department/enable/{departmentCode}启用部门
KosmosDubheApi.OrgDepartmentControllerApifetchDepartmentDetailGET /rest/department/detail/{departmentCode}获取部门详细信息
KosmosDubheApi.OrgDepartmentControllerApifetchDepartmentListGET /rest/department/list获取部门列表信息
KosmosDubheApi.OrgDepartmentControllerApiremoveDepartmentDELETE /rest/department/remove/{departmentCode}删除部门信息
KosmosDubheApi.OrgDepartmentControllerApisaveOrgDepartmentPOST /rest/department/save保存部门信息
KosmosDubheApi.OrgOrganziationControllerApidisableOrganizationPUT /rest/organization/disable/{organizationCode}禁用组织机构
KosmosDubheApi.OrgOrganziationControllerApienableOrganizationPUT /rest/organization/enable/{organizationCode}启用组织机构
KosmosDubheApi.OrgOrganziationControllerApifetchOrganizationDetailGET /rest/organization/detail/{organizationCode}获取组织机构详细信息
KosmosDubheApi.OrgOrganziationControllerApifetchOrganizationListGET /rest/organization/list获取组织机构列表信息
KosmosDubheApi.OrgOrganziationControllerApiremoveOrganizationDELETE /rest/organization/remove/{organizationCode}删除组织机构信息
KosmosDubheApi.OrgOrganziationControllerApisaveOrgOrganizationPOST /rest/organization/save保存组织机构信息
KosmosDubheApi.RecordControllerApifetchListRecordsGET /rest/record/fetchListRecords获取操作记录全部信息
KosmosDubheApi.SystemConfigControllerApifetchAllItemSettingUsingGETGET /rest/systemConfig/fetchAllItemSetting获取全部配置项设置值
KosmosDubheApi.SystemConfigControllerApifetchConfigByGroupCodeUsingGETGET /rest/systemConfig/fetchConfigByGroupCode/{groupCode}获取配置组信息
KosmosDubheApi.SystemConfigControllerApifetchItemSettingByItemCodeUsingGETGET /rest/systemConfig/fetchItemSettingByItemCode/{itemCode}获取配置项设置值
KosmosDubheApi.SystemConfigControllerApiupdateConfigByGroupSettingUsingPUTPUT /rest/systemConfig/updateSystemConfigGroupSetting保存组配置信息
KosmosDubheApi.SystemConfigControllerApiupdateDisableSystemConfigUsingPUTPUT /rest/systemConfig/updateDisableSystemConfig/{itemCode}禁用配置项
KosmosDubheApi.SystemConfigControllerApiupdateEnableSystemConfigUsingPUTPUT /rest/systemConfig/updateEnableSystemConfig/{itemCode}启用配置项
KosmosDubheApi.SystemConfigControllerApiupdateSystemConfigSettingUsingPUTPUT /rest/systemConfig/updateSystemConfigItemSetting保存项配置信息
KosmosDubheApi.UserControllerApiallGET /rest/user/all获取当前用户信息
KosmosDubheApi.UserControllerApicurrentPOST /rest/user/current获取当前用户信息
KosmosDubheApi.UserControllerApicurrentDetailGET /rest/user/currentDetail获取当前用户信息
KosmosDubheApi.XhlReportControllerApiaddXhlPOST /rest/xhl/add保存报卡
KosmosDubheApi.XhlReportControllerApiaddXhlMultiPOST /rest/xhl/addMulti/{immediately}保存报卡
KosmosDubheApi.XhlReportControllerApidetailXhlGET /rest/xhl/detail/{id}获取现换率请求详情
KosmosDubheApi.XhlReportControllerApilistXhlGET /rest/xhl/list获取现换率全部上报请求
KosmosDubheApi.XhlReportControllerApiremoveXhlDELETE /rest/xhl/delete/{id}撤销报卡
KosmosDubheApi.XhlReportControllerApireportXhlPOST /rest/xhl/organzation/{id}上报现换率

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago