API - get data types


Get the stored data types.

Prerequisite Method URI Request Body
none GET /api/v1/data-type none

Response Sample:

200 OK
[
    {
        "id": "blood_pressure",
        "name": "Blood Pressure",
        "updated_at": "2019-04-26 13:20:27"
    },
    {
        "id": "weight_kg",
        "name": "Weight (Kg)",
        "updated_at": "2019-04-26 13:20:27"
    },
    {
        "id": "fluid_ml",
        "name": "Fluid Intake (ml)",
        "updated_at": "2019-04-26 13:20:27"
    },
    {
        "id": "pir_data",
        "name": "PIR",
        "updated_at": "2019-04-26 13:20:27"
    },
    {
        "id": "elec_mw",
        "name": "Electricity Usage (MW)",
        "updated_at": "2019-04-26 13:20:27"
    }
]