docs
This commit is contained in:
37
docs/services/database/area/updateAreaService.md
Normal file
37
docs/services/database/area/updateAreaService.md
Normal file
@@ -0,0 +1,37 @@
|
||||
<!-- /docs/services/database/area/updateAreaService.md -->
|
||||
|
||||
# 🗺️ updateAreaService.js
|
||||
|
||||
Service zur Aktualisierung der Koordinaten eines Bereichs (Area) in der Datenbank.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
await updateAreaService({
|
||||
idLocation: 4,
|
||||
idMap: 1,
|
||||
newCoords: { x: 53.219, y: 8.435 }
|
||||
});
|
||||
```
|
||||
|
||||
## API-Route
|
||||
|
||||
```
|
||||
PUT /api/talas_v5_DB/area/updateArea
|
||||
```
|
||||
|
||||
## Payload
|
||||
|
||||
```json
|
||||
{
|
||||
"idLocation": 4,
|
||||
"idMap": 1,
|
||||
"x": 53.219,
|
||||
"y": 8.435
|
||||
}
|
||||
```
|
||||
|
||||
## Rückgabe
|
||||
|
||||
- Erfolgreich: JSON mit Erfolgsmeldung
|
||||
- Fehler: `throw new Error(...)` bei nicht OK
|
||||
Reference in New Issue
Block a user