Adding coordinate to Location model
This commit is contained in:
@@ -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)"
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user