Files
iot-dc3/dc3/api/dc3-data.http
T

62 lines
1.6 KiB
HTTP

#
# Copyright 2016-2021 Pnoker. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
### --------------------- Point ---------------------
### 分页查询 Point Value
#/data/list
POST http://localhost:8500/data/point_value/list
Accept: */*
Content-Type: application/json
Cache-Control: no-cache
{
"deviceId": "1",
"pointId": "1",
"page": {
"current": 1
}
}
### 根据 Device Id 查询 最新值
#/latest/device_id/:deviceId
GET http://localhost:8500/data/point_value/latest/device_id/1
Accept: */*
Cache-Control: no-cache
### 根据 Device Id 和 Point Id 查询 最新值
#/latest/device_id/:deviceId/point_id/:pointId
GET http://localhost:8500/data/point_value/latest/device_id/1/point_id/1
Accept: */*
Cache-Control: no-cache
### 根据 Device Id 查询 实时值
#/realtime/device_id/:deviceId
GET http://localhost:8500/data/point_value/realtime/device_id/1379432247010025473
Accept: */*
Cache-Control: no-cache
### 根据 Device Id 和 Point Id 查询 实时值
#/realtime/device_id/:deviceId/point_id/:pointId
GET http://localhost:8500/data/point_value/realtime/device_id/1/point_id/1
Accept: */*
Cache-Control: no-cache
###