tcdbvn v1.0.4
h_thng_gim_st_hnh_nh___tng_cc_ng_b
HThngGimStHnhNhTngCcNgB - JavaScript client for h_thng_gim_st_hnh_nh___tng_cc_ng_b Tai lieu mo ta API he thong Giam sat hinh anh - TCDBVN This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0
- Package version: 1.0
- Build package: io.swagger.codegen.v3.generators.javascript.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 h_thng_gim_st_hnh_nh___tng_cc_ng_b --save
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 HThngGimStHnhNhTngCcNgB = require('h_thng_gim_st_hnh_nh___tng_cc_ng_b');
var api = new HThngGimStHnhNhTngCcNgB.GSHAAPIApi()
var providerID = 56; // {Number} Mã định danh Đơn vị truyền dữ liệu
var opts = {
'imageData': "imageData_example", // {Blob}
'imageGuid': "38400000-8cf0-11bd-b23e-10b96e4ef00d", // {String}
'vehiclePlate': "vehiclePlate_example", // {String}
'gPSTime': new Date("2013-10-20T19:20:30+01:00"), // {Date}
'driverLicense': "driverLicense_example", // {String}
'gPSLat': 1.2, // {Number}
'gPSLon': 1.2, // {Number}
'cameraView': "cameraView_example", // {String}
'imageCheckSUM': "imageCheckSUM_example", // {String}
'providerID': 56, // {Number}
'cameraID': 56, // {Number}
'senderImageLink': "senderImageLink_example" // {String}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.apiV1Image2ProviderIDPost(providerID, opts, callback);
Documentation for API Endpoints
All URIs are relative to http://localhost:8082
Class | Method | HTTP request | Description |
---|---|---|---|
HThngGimStHnhNhTngCcNgB.GSHAAPIApi | apiV1Image2ProviderIDPost | POST /api/v1/image2/{providerID} | Truyền một ảnh dưới dạng Multipart Form |
HThngGimStHnhNhTngCcNgB.GSHAAPIApi | apiV1ImageProviderIDPost | POST /api/v1/image/{providerID} | Truyền một ảnh dưới dạng Base64 |
HThngGimStHnhNhTngCcNgB.GSHAAPIApi | apiV1Images2ProviderIDPost | POST /api/v1/images2/{providerID} | Truyền danh sách ảnh dưới dạng Multipart Form |
HThngGimStHnhNhTngCcNgB.GSHAAPIApi | apiV1ImagesProviderIDPost | POST /api/v1/images/{providerID} | Truyền danh sách ảnh dưới dạng Base64 |
HThngGimStHnhNhTngCcNgB.GSHAAPIApi | changePassword | POST /api/v1/user/changepassword | Đổi mật khẩu |
HThngGimStHnhNhTngCcNgB.GSHAAPIApi | getCurrentTime | GET /api/v1/server/getcurrentime | Kiểm tra thời gian máy chủ |
HThngGimStHnhNhTngCcNgB.GSHAAPIApi | getServerStatus | GET /api/v1/server/getserverstatus | Lấy trạng thái hệ thống |
HThngGimStHnhNhTngCcNgB.GSHAAPIApi | getStatisticByProvider | GET /api/v1/server/getstatisticbyprovider | Đối soát dữ liệu |
HThngGimStHnhNhTngCcNgB.GSHAAPIApi | getStatisticByVehicle | GET /api/v1/server/getstatisticbyvehicle | Đối soát tự động |
HThngGimStHnhNhTngCcNgB.GSHAAPIApi | getVehicleInfo | GET /api/v1/server/getvehicleinfo | Tra cứu thông tin đơn vị truyền nhận |
HThngGimStHnhNhTngCcNgB.GSHAAPIApi | login | POST /api/v1/user/login | Đăng nhập và duy trì phiên truyền dữ liệu |
HThngGimStHnhNhTngCcNgB.GSHAAPIApi | logout | POST /api/v1/user/logout | Đăng xuất |
Documentation for Models
- HThngGimStHnhNhTngCcNgB.ChangePasswordReqDTO
- HThngGimStHnhNhTngCcNgB.Image2Request
- HThngGimStHnhNhTngCcNgB.ImageRequest
- HThngGimStHnhNhTngCcNgB.ImageResponse
- HThngGimStHnhNhTngCcNgB.ImageResponseData
- HThngGimStHnhNhTngCcNgB.Images2ProviderIDBody
- HThngGimStHnhNhTngCcNgB.Images2Request
- HThngGimStHnhNhTngCcNgB.ImagesRequest
- HThngGimStHnhNhTngCcNgB.ImagesResponse
- HThngGimStHnhNhTngCcNgB.LoginReqDTO
- HThngGimStHnhNhTngCcNgB.LogoutReqDTO
- HThngGimStHnhNhTngCcNgB.ServerStatus
- HThngGimStHnhNhTngCcNgB.ServerStatusResponse
- HThngGimStHnhNhTngCcNgB.ServerTimeResponse
- HThngGimStHnhNhTngCcNgB.ServerTimeResponseData
- HThngGimStHnhNhTngCcNgB.StandardResponse
- HThngGimStHnhNhTngCcNgB.StatisticByProvider
- HThngGimStHnhNhTngCcNgB.StatisticByProviderResponse
- HThngGimStHnhNhTngCcNgB.StatisticByVehicle
- HThngGimStHnhNhTngCcNgB.StatisticByVehicleResponse
- HThngGimStHnhNhTngCcNgB.TokenResponse
- HThngGimStHnhNhTngCcNgB.TokenResponseData
- HThngGimStHnhNhTngCcNgB.VehicleInfo
- HThngGimStHnhNhTngCcNgB.VehicleInfoResponse
Documentation for Authorization
All endpoints do not require authorization.