VehicleClient

class VehicleClient(val client: HttpClient)

Client to access vehicle related functionalities

Constructors

Link copied to clipboard
fun VehicleClient(client: HttpClient)

Functions

Link copied to clipboard
fun create(vehicle: Vehicle): Vehicle

Creates a new vehicle

Link copied to clipboard
fun get(vehicleId: String): Vehicle

Get a vehicle using its Id

Link copied to clipboard
fun getSeveral(    model: String? = null,     manufacturer: String? = null,     year: Int? = null,     vehicleType: String? = null): List<Vehicle>

Gets several vehicles based on the provided criteria

Properties

Link copied to clipboard
val client: HttpClient

Ktor HttpClient used to make HTTP requests