29 lines
526 B
Markdown

# LocationsApi document shapes
This service expects JSON request bodies for location creation and updates and
stores location documents in MongoDB.
Inbound JSON documents
- CreateLocationRequest (`POST /api/locations`)
```json
{
"name": "string"
}
```
- UpdateLocationRequest (`PUT /api/locations/{id}`)
```json
{
"name": "string"
}
```
Stored documents (MongoDB)
- Location
```json
{
"id": "string (ObjectId)",
"name": "string",
"createdUtc": "string (ISO-8601 datetime)"
}
```