Adding endpoint to only get locations visible to character
This commit is contained in:
@@ -12,16 +12,32 @@ Inbound JSON documents
|
||||
```
|
||||
|
||||
Stored documents (MongoDB)
|
||||
- Character
|
||||
```json
|
||||
{
|
||||
"id": "string (ObjectId)",
|
||||
"ownerUserId": "string",
|
||||
"name": "string",
|
||||
"coord": {
|
||||
"x": "number",
|
||||
"y": "number"
|
||||
},
|
||||
"createdUtc": "string (ISO-8601 datetime)"
|
||||
}
|
||||
```
|
||||
- Character
|
||||
```json
|
||||
{
|
||||
"id": "string (ObjectId)",
|
||||
"ownerUserId": "string",
|
||||
"name": "string",
|
||||
"coord": {
|
||||
"x": "number",
|
||||
"y": "number"
|
||||
},
|
||||
"visionRadius": "number",
|
||||
"createdUtc": "string (ISO-8601 datetime)"
|
||||
}
|
||||
```
|
||||
|
||||
Outbound JSON documents
|
||||
- VisibleLocation (`GET /api/characters/{id}/visible-locations`)
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": "string (ObjectId)",
|
||||
"name": "string",
|
||||
"coord": {
|
||||
"x": "number",
|
||||
"y": "number"
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user