1.0.8 • Published 3 years ago

dubhe-report-api v1.0.8

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

dubhe-report-api

DubheReportApi - JavaScript client for dubhe-report-api dubhe report 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 dubhe-report-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 dubhe-report-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 DubheReportApi = require('dubhe-report-api');


var api = new DubheReportApi.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
DubheReportApi.AccessControllerApifetchAccessesUsingPOSTPOST /rest/access/fetch获取权限
DubheReportApi.AccessControllerApifetchMenuUsingPOSTPOST /rest/access/menu获取菜单
DubheReportApi.AuthControllerApiloginUsingPOSTPOST /auth/login认证接口
DubheReportApi.CdcReportControllerApiaddCdcPOST /api/cdc/add保存报卡
DubheReportApi.CdcReportControllerApiaddCdc1POST /rest/cdc/add保存报卡
DubheReportApi.CdcReportControllerApiaddCdcMultiPOST /api/cdc/addMulti/{immediately}保存报卡
DubheReportApi.CdcReportControllerApiaddCdcMulti1POST /rest/cdc/addMulti/{immediately}保存报卡
DubheReportApi.CdcReportControllerApicdcReportImmediatelyGET /api/cdc/report/immediately批量报卡
DubheReportApi.CdcReportControllerApicdcReportImmediately1GET /rest/cdc/report/immediately批量报卡
DubheReportApi.CdcReportControllerApicdcsettingGET /api/cdc/setting获取CDC设置
DubheReportApi.CdcReportControllerApicdcsetting1GET /rest/cdc/setting获取CDC设置
DubheReportApi.CdcReportControllerApidetailCdcGET /api/cdc/detail/{id}获取CDC请求详情
DubheReportApi.CdcReportControllerApidetailCdc1GET /rest/cdc/detail/{id}获取CDC请求详情
DubheReportApi.CdcReportControllerApilistCdcGET /api/cdc/list获取CDC全部上报请求
DubheReportApi.CdcReportControllerApilistCdc1GET /rest/cdc/list获取CDC全部上报请求
DubheReportApi.CdcReportControllerApiremoveCdcDELETE /api/cdc/delete/{id}撤销报卡
DubheReportApi.CdcReportControllerApiremoveCdc1DELETE /rest/cdc/delete/{id}撤销报卡
DubheReportApi.CdcReportControllerApireportCdcPOST /api/cdc/report/{id}上报CDC
DubheReportApi.CdcReportControllerApireportCdc1POST /rest/cdc/report/{id}上报CDC
DubheReportApi.CdcReportControllerApitestDetailCdcGET /api/cdc/testDetailCdc/{id}获取CDC请求详情
DubheReportApi.CdcReportControllerApitestDetailCdc1GET /rest/cdc/testDetailCdc/{id}获取CDC请求详情
DubheReportApi.CdcReportControllerApitestPublishUsingGETGET /api/cdc/report/testPublishtestPublish
DubheReportApi.CdcReportControllerApitestPublishUsingGET1GET /rest/cdc/report/testPublishtestPublish
DubheReportApi.CdcReportControllerApivpnstatusGET /api/cdc/vpnstatus获取CDC VPN状态
DubheReportApi.CdcReportControllerApivpnstatus1GET /rest/cdc/vpnstatus获取CDC VPN状态
DubheReportApi.DigitalCertificateControllerApifetchLicenseUsingGETGET /license/info获取license信息
DubheReportApi.DigitalCertificateControllerApireloadUsingGETGET /license/reload重载license信息
DubheReportApi.LoginControllerApirefreshTokenUsingPOSTPOST /rest/login/refresh/token登录接口
DubheReportApi.MonitorStatusDemoControllerApifetchMonitorStatusPageSqlUsingGETGET /rest/test/fetchMonitorStatusPageSql测试fetch分页sql
DubheReportApi.MonitorStatusDemoControllerApifetchMonitorStatusPageUsingGETGET /rest/test/fetchMonitorStatusPage测试fetch分页nosql
DubheReportApi.MonitorStatusDemoControllerApifetchMonitorStatusUsingGETGET /rest/test/fetchMonitorStatus测试fetch
DubheReportApi.RecordControllerApifetchListRecordsGET /rest/record/fetchListRecords获取操作记录全部信息
DubheReportApi.ReportControllerApiaddExposeReportUsingPOSTPOST /rest/cases/exposeReportaddExposeReport
DubheReportApi.ReportControllerApiaddGatherReportUsingPOSTPOST /rest/cases/gatherReportaddGatherReport
DubheReportApi.ReportControllerApiaddReportUsingPOSTPOST /rest/cases/reportaddReport
DubheReportApi.ReportControllerApicancelReportUsingPOSTPOST /rest/cases/cancelReportcancelReport
DubheReportApi.ReportControllerApideleteGatherReportUsingPOSTPOST /rest/cases/deleteGatherReportdeleteGatherReport
DubheReportApi.ReportControllerApideleteReportUsingPOSTPOST /rest/cases/deleteReportdeleteReport
DubheReportApi.ReportControllerApilistExposeReportsUsingGETGET /rest/cases/exposeReportslistExposeReports
DubheReportApi.ReportControllerApilistGatherReportsRangeUsingGETGET /rest/cases/gatherReports/rangelistGatherReportsRange
DubheReportApi.ReportControllerApilistGatherReportsUsingGETGET /rest/cases/gatherReportslistGatherReports
DubheReportApi.ReportControllerApilistReportsUsingGETGET /rest/cases/reportslistReports
DubheReportApi.ReportControllerApirecallReportUsingPOSTPOST /rest/cases/recallReportrecallReport
DubheReportApi.ReportControllerApireportReportUsingPOSTPOST /rest/cases/reportReportreportReport
DubheReportApi.ReportControllerApisubmitReportUsingPOSTPOST /rest/cases/submitsubmitReport
DubheReportApi.SystemConfigControllerApifetchAllItemSettingUsingGETGET /rest/systemConfig/fetchAllItemSetting获取全部配置项设置值
DubheReportApi.SystemConfigControllerApifetchConfigByGroupCodeUsingGETGET /rest/systemConfig/fetchConfigByGroupCode/{groupCode}获取配置组信息
DubheReportApi.SystemConfigControllerApifetchItemSettingByItemCodeUsingGETGET /rest/systemConfig/fetchItemSettingByItemCode/{itemCode}获取配置项设置值
DubheReportApi.SystemConfigControllerApiupdateConfigByGroupSettingUsingPUTPUT /rest/systemConfig/updateSystemConfigGroupSetting保存组配置信息
DubheReportApi.SystemConfigControllerApiupdateDisableSystemConfigUsingPUTPUT /rest/systemConfig/updateDisableSystemConfig/{itemCode}禁用配置项
DubheReportApi.SystemConfigControllerApiupdateEnableSystemConfigUsingPUTPUT /rest/systemConfig/updateEnableSystemConfig/{itemCode}启用配置项
DubheReportApi.SystemConfigControllerApiupdateSystemConfigSettingUsingPUTPUT /rest/systemConfig/updateSystemConfigItemSetting保存项配置信息
DubheReportApi.UserControllerApiallGET /rest/user/all获取当前用户信息
DubheReportApi.UserControllerApicurrentPOST /rest/user/current获取当前用户信息
DubheReportApi.UserControllerApicurrentDetailGET /rest/user/currentDetail获取当前用户信息
DubheReportApi.XhlReportControllerApiaddXhlPOST /rest/xhl/add保存报卡
DubheReportApi.XhlReportControllerApiaddXhlMultiPOST /rest/xhl/addMulti/{immediately}保存报卡
DubheReportApi.XhlReportControllerApidetailXhlGET /rest/xhl/detail/{id}获取现换率请求详情
DubheReportApi.XhlReportControllerApilistXhlGET /rest/xhl/list获取现换率全部上报请求
DubheReportApi.XhlReportControllerApiremoveXhlDELETE /rest/xhl/delete/{id}撤销报卡
DubheReportApi.XhlReportControllerApireportXhlPOST /rest/xhl/report/{id}上报现换率

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago