openapi: 3.1.0
info:
  title: "1oT IoT Platform API"
  version: 2.0.0
servers:
  -
    url: "https://1ot.dailyplatform.it/api"
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
security:
  -
    bearerAuth:
paths:
  /iot/v2/auth/login:
    post:
      summary: "Login API v2 e rilascio Bearer token"
  /iot/v2/devices:
    get:
      summary: "Lista device registrati"
  /iot/v2/device-types:
    get:
      summary: "Tassonomia device e profili operativi"
  /iot/v2/metrics:
    get:
      summary: "Lista metriche runtime scoperte"
  /iot/v2/payloads:
    get:
      summary: "Lista payload normalizzati"
  "/iot/v2/payloads/{id}":
    get:
      summary: "Dettaglio payload raw + normalized"
  "/iot/v2/payloads/{id}/raw":
    get:
      summary: "Payload JSON originale"
  "/iot/v2/payloads/{id}/normalized":
    get:
      summary: "Metriche normalizzate del payload"
  "/iot/v2/devices/{id}/telemetry":
    get:
      summary: "Telemetrie collegate a un device"
  /iot/v2/ai/context:
    get:
      summary: "Payload AI-ready per IAIA o sistemi esterni"
