POST api/Vehicles
Request Information
URI Parameters
None.
Body Parameters
VehicleName | Description | Type | Additional information |
---|---|---|---|
Registration | string |
None. |
|
RSLNumber | string |
None. |
|
Sacco | string |
None. |
|
Capacity | integer |
None. |
|
Electric | integer |
None. |
|
DateOfRegistration | date |
None. |
|
VehicleID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Registration": "sample string 1", "RSLNumber": "sample string 2", "Sacco": "sample string 3", "Capacity": 1, "Electric": 1, "DateOfRegistration": "2025-04-19T15:22:45.4324137+03:00", "VehicleID": 4 }
application/xml, text/xml
Sample:
<Vehicle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BookingSystem.Models"> <Capacity>1</Capacity> <DateOfRegistration>2025-04-19T15:22:45.4324137+03:00</DateOfRegistration> <Electric>1</Electric> <RSLNumber>sample string 2</RSLNumber> <Registration>sample string 1</Registration> <Sacco>sample string 3</Sacco> <VehicleID>4</VehicleID> </Vehicle>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ObjectNone.
Response Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />