docs
This commit is contained in:
@@ -1,5 +1,22 @@
|
||||
# fetchDeviceNameByIdService
|
||||
<!-- /docs/services/database/fetchDeviceNameByIdService.md -->
|
||||
|
||||
Liest Gerätenamen über die eigene Next.js-API.
|
||||
# 🆔 fetchDeviceNameByIdService.js
|
||||
|
||||
**Route:** `/api/talas_v5_DB/locationDevice/locationDeviceNameById?idLD={idLD}`
|
||||
Lädt den Gerätenamen (`name`) anhand der ID (`idLD`) von der API.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
const name = await fetchDeviceNameById(idLD);
|
||||
```
|
||||
|
||||
## API-Route
|
||||
|
||||
```
|
||||
/api/talas_v5_DB/locationDevice/locationDeviceNameById?idLD=...
|
||||
```
|
||||
|
||||
## Rückgabe
|
||||
|
||||
- Erfolgreich: Gerätebezeichnung als `string`
|
||||
- Fehler: `"Unbekannt"`
|
||||
Reference in New Issue
Block a user