Calibration

Base route: /api/calibration

Table of contents

  1. /getSensorCalibrationPoints/:sensorId
  2. Response Schema
  3. Sample Response

/getSensorCalibrationPoints/:sensorId

Description Gets all the calibration points for a given sensor.
HTTP Verb GET
Success Codes 200
Failure Codes 500 server error
Request Params { sensorId: number }
Sample Params { sensorId: 12 }
Request Schema Request body is not applicable to this endpoint.
Sample Request Request body is not applicable to this endpoint.

Response Schema

A list of calibration points.

{
    "data": {
            "id": number,
            "digital_value": number,
            "physical_value": number,
            "sensor_id": number
        }[]
}

Sample Response

{
    "data": [
        {
            "id": 1,
            "digital_value": 5.0,
            "physical_value": 1.3,
            "sensor_id": 1001
        },
        {
            "id": 2,
            "digital_value": 5.9,
            "physical_value": 1.4,
            "sensor_id": 1001
        },
        {
            "id": 5,
            "digital_value": 8.0,
            "physical_value": 7.0,
            "sensor_id": 1001
        }
    ]
}