docs
This commit is contained in:
26
docs/pages/api/talas_v5_DB/locationDevice/getDeviceId.md
Normal file
26
docs/pages/api/talas_v5_DB/locationDevice/getDeviceId.md
Normal file
@@ -0,0 +1,26 @@
|
||||
<!-- /docs/pages/api/talas_v5_DB/locationDevice/getDeviceId.md -->
|
||||
|
||||
# 🔍 getDeviceId.js
|
||||
|
||||
Gibt die Geräte-ID (`idLD`) zu einem übergebenen Gerätenamen zurück.
|
||||
|
||||
## Methode
|
||||
|
||||
- `GET`
|
||||
|
||||
## Parameter
|
||||
|
||||
| Name | Beschreibung |
|
||||
|-------------|----------------------|
|
||||
| `deviceName` | Der Gerätename (z. B. "Kue705") |
|
||||
|
||||
## Antwort
|
||||
|
||||
```json
|
||||
{ "idLD": 27 }
|
||||
```
|
||||
|
||||
## Fehler
|
||||
|
||||
- 400: Wenn `deviceName` fehlt
|
||||
- 404: Gerät nicht gefunden
|
||||
@@ -0,0 +1,26 @@
|
||||
<!-- /docs/pages/api/talas_v5_DB/locationDevice/locationDeviceNameById.md -->
|
||||
|
||||
# 🏷️ locationDeviceNameById.js
|
||||
|
||||
Gibt den Namen eines Geräts anhand seiner ID zurück.
|
||||
|
||||
## Methode
|
||||
|
||||
- `GET`
|
||||
|
||||
## Parameter
|
||||
|
||||
| Name | Beschreibung |
|
||||
|--------|------------------------|
|
||||
| `idLD` | Geräte-ID (z. B. 27) |
|
||||
|
||||
## Antwort
|
||||
|
||||
```json
|
||||
{ "name": "Kue705" }
|
||||
```
|
||||
|
||||
## Fehler
|
||||
|
||||
- 400: Fehlender Parameter
|
||||
- 404: Gerät mit ID nicht gefunden
|
||||
27
docs/pages/api/talas_v5_DB/locationDevice/locationDevices.md
Normal file
27
docs/pages/api/talas_v5_DB/locationDevice/locationDevices.md
Normal file
@@ -0,0 +1,27 @@
|
||||
<!-- /docs/pages/api/talas_v5_DB/locationDevice/locationDevices.md -->
|
||||
|
||||
# 🗂️ locationDevices.js
|
||||
|
||||
Gibt eine vollständige Liste aller Geräte in der Tabelle `location_device` zurück.
|
||||
|
||||
## Methode
|
||||
|
||||
- `GET`
|
||||
|
||||
## Verhalten
|
||||
|
||||
- Führt `SELECT * FROM location_device ORDER BY name` aus
|
||||
- Gibt vollständige Objekte zurück
|
||||
|
||||
## Beispielantwort
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"idLD": 27,
|
||||
"name": "Kue705",
|
||||
"description": "...",
|
||||
...
|
||||
}
|
||||
]
|
||||
```
|
||||
Reference in New Issue
Block a user