Files
nodeMap/docs/pages/api/talas_v5_DB/device/getDevices.md

629 B

🔌 getDevices.js

API-Route zum Abrufen aller Geräteinformationen aus der devices-Tabelle.

Methode

  • POST (erwartet JSON-Body mit optionalem activeSystems-Array)

Verhalten

  • Führt ein einfaches SELECT * FROM devices aus
  • Nutzt Singleton-MySQL-Pool für Verbindung
  • Rückgabe: JSON-Array mit allen Geräteobjekten

Beispielantwort

[
  {
    "id": 1,
    "name": "Kue705",
    "idsystem_typ": 1,
    ...
  }
]

Pfad

/pages/api/talas_v5_DB/device/getDevices.js

Zurück zur Übersicht