GEMS 데이터 조회
GEMS 데이터 조회 API: GEMS를 통해 수집된 모든 데이터를 조회합니다.
[GET] GEMS 데이터 조회
GET /device/collect-data
Headers
Name
Value
Content-Type
application/json
x-api-key
<token>
Parameter
Name
Type
Description
-
-
-
Response
Name
Type
Required
Description
deviceId
Uuid
O
장비의 고유ID (장비 ID 전달 예정)
lastUpdate
DateTime
O
가장 최근 업데이트된 시간 (ISO-8601 형태 준수하는 UTC 시간 기준)
data
Object
O
GEMS 기기에서 수집하고 있는 모든 데이터를 key-value 형식으로 반환 (예: sum, thisMonth, lastMonth etc.)
data 내에 들어가는 field 중 숫자 타입의 경우, float 타입으로 전달 부탁드립니다.
Response Example
[
{
"deviceId": "0d681f7c-1a2a-410c-95b5-96935bde7664",
"lastUpdate": 2024-06-08T13:14:15.899Z,
"data": {
"sum": 243.66,
"thisMonth": 44545.65,
... // 수집되는 모든 데이터
}
},
{
"deviceId": "ed4c3202-4c90-44b7-8edf-3194ad0cce56",
"lastUpdate": 2024-06-08T13:12:15.899Z,
"data": {
"sum": 464.66,
"thisMonth": 78545.65,
... // 수집되는 모든 데이터
}
},
...
]{
"statusCode": 400, // 실제 상황에 맞는 상태코드 전달
"message": "Invalid Request" // 실제 에러 메시지 전달
}{
"statusCode": 500, // 실제 상황에 맞는 상태코드 전달
"message": "Internal Server Error" // 실제 에러 메시지 전달
}Last updated