Adding coordinate to Location model

This commit is contained in:
2026-01-20 17:25:35 -06:00
parent 88e3767971
commit 268eca39c0
7 changed files with 99 additions and 4 deletions
+10 -1
View File
@@ -7,7 +7,11 @@ Inbound JSON documents
- CreateLocationRequest (`POST /api/locations`)
```json
{
"name": "string"
"name": "string",
"coord": {
"x": 0,
"y": 0
}
}
```
- UpdateLocationRequest (`PUT /api/locations/{id}`)
@@ -16,6 +20,7 @@ Inbound JSON documents
"name": "string"
}
```
`coord` cannot be updated.
Stored documents (MongoDB)
- Location
@@ -23,6 +28,10 @@ Stored documents (MongoDB)
{
"id": "string (ObjectId)",
"name": "string",
"coord": {
"x": 0,
"y": 0
},
"createdUtc": "string (ISO-8601 datetime)"
}
```