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.)

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,
             ... // 수집되는 모든 데이터 
       }
     },
     ...
]

Last updated