Get a list of waypoints
GET/waypoints
The Get All Waypoints request allows users to retrieve a list of all the waypoints that are associated with the current active map in ANSCER ROBOT.
To use this request, you need to send a GET request to the API endpoint. ANSCER ANYA will then retrieve a list of all waypoints that are currently available in active Map and return them in the response body in JSON format.
Request
Responses
- 200
- 401
- 403
- 500
A list of waypoints
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Possible values: >= 3 characters and <= 50 characters
Possible values: [normal, special, charging, home]
coordinate object
position objectrequired
orientation objectrequired
map object
Possible values: >= 3 characters and <= 50 characters
createdBy object
The user who created this waypoint
updatedBy object
The user who last updated this waypoint
The date and time this waypoint was created
The date and time this waypoint was last updated
[
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"category": "normal",
"dockMarker": 0,
"coordinate": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"orientation": {
"x": 0,
"y": 0,
"z": 0,
"w": 0
}
},
"map": {
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"properties": {},
"createdBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"updatedBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"createdAt": "2024-12-03T13:26:27.466Z",
"updatedAt": "2024-12-03T13:26:27.466Z"
}
]
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."
}
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."
}