Get a map by ID
GET/maps/:mapId
The Get Map request allows authenticated users to retrieve detailed information about a specific map. This request can be accessed by any authenticated user with the appropriate permissions.
Request
Path Parameters
mapId stringrequired
The ID of the map to retrieve, update or delete
Responses
- 200
- 401
- 403
- 404
- 500
Map details
- application/json
- Schema
- Example (from schema)
Schema
_id uuid
name string
Possible values: >= 3 characters and <= 50 characters
isActive boolean
properties object
origin object
position objectrequired
x doublerequired
y doublerequired
z doublerequired
orientation objectrequired
x doublerequired
y doublerequired
z doublerequired
w doublerequired
width double
height double
resolution double
previewUrl uri
createdBy object
The user who created this map
_id string
name string
email email
updatedBy object
The user who last updated this map
_id string
name string
email email
createdAt date-time
The date and time this user was created
updatedAt date-time
The date and time this user was last updated
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"isActive": true,
"properties": {
"origin": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"orientation": {
"x": 0,
"y": 0,
"z": 0,
"w": 0
}
},
"width": 0,
"height": 0,
"resolution": 0,
"previewUrl": "string"
},
"createdBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"updatedBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"createdAt": "2024-12-03T13:26:27.422Z",
"updatedAt": "2024-12-03T13:26:27.422Z"
}
Unauthorized.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Authentication token not provided."
}
{
"message": "Authentication token not provided."
}
Forbidden.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Access to this resource is forbidden."
}
{
"message": "Access to this resource is forbidden."
}
Resource not found.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Resource not found."
}
{
"message": "Resource not found."
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Internal Server Error. Please try again later."
}
{
"message": "Internal Server Error. Please try again later."
}
Loading...