Vehicle Controller

Get All Vehicles

Path: /api/vehicle

Method: GET

Example Http Request

GET /api/vehicle/room1 HTTP/1.1
Host: localhost:8080

Example Http Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 307

{"timestamp":"03/12/2025 12:36:58.546","vehicles":[{"vehicle_id":"vehicle1","owner":null,"spawn_data":{"playerId":"vehicle1owner","definition":"vehicle1definition","position":{"x":10.0,"y":10.0,"z":10.0},"euler_angles":{"x":20.0,"y":20.0,"z":20.0}},"last_movement":null,"function_state":[],"occupancy":[]}]}

Example Curl Request

$ curl 'http://localhost:8080/api/vehicle/room1' -i -X GET

Vehicle Controller