JSON Schema for /api/sensorData

Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": { "type": "integer" },
      "DeviceName": { "type": "string" }
    },
    "required": ["id", "DeviceName"]
  }
}

JSON Schema for /api/sensorData/{DeviceName}

Schema
{
    "": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
      "id": {
        "type": "integer",
        "units": "integer",
        "description": "The unique identifier of the device."
      },
      "DeviceName": {
        "type": "string",
        "units": "string",
        "description": "The name of the device."
      },
      "DataDateTime": {
        "type": "string",
         "format": "my-date-time",
        "units": "date-time",
        "description": "The date and time when the data was recorded."
      },
      "Temperature": {
        "type": "string",
        "units": "°C",
        "description": "The temperature reading in degrees Celsius."
      },
      "RH": {
        "type": "string",
        "units": "%",
        "description": "The relative humidity reading in percentage."
      },
      "PM2P5": {
        "type": "string",
        "units": "µg/m³",
        "description": "The PM2.5 particle concentration in micrograms per cubic meter."
      }
    },
    "required": ["id", "DeviceName", "DataDateTime", "Temperature", "RH", "PM2P5"]
  }