POST api/Valet/GuestCar/Add
Request Information
URI Parameters
None.
Body Parameters
GuestCarBindingModelName | Description | Type | Additional information |
---|---|---|---|
LicencePlate | string |
Required String length: inclusive between 0 and 10 |
|
FirstName | string |
String length: inclusive between 0 and 30 |
|
LastName | string |
String length: inclusive between 0 and 50 |
|
PhoneNumber | string |
String length: inclusive between 0 and 10 |
|
CarBrandId | integer |
None. |
|
CarModelId | integer |
Range: inclusive between 1 and 2147483647 |
|
ColorId | integer |
Range: inclusive between 1 and 2147483647 |
|
ForeignPlate | boolean |
None. |
|
LicencePlateImage | LicencePlateImage |
None. |
|
PostedLicencePlateImage | Collection of byte |
None. |
Request Formats
application/json, text/json
Sample:
{ "LicencePlate": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "PhoneNumber": "sample string 4", "CarBrandId": 5, "CarModelId": 6, "ColorId": 1, "ForeignPlate": true, "LicencePlateImage": null, "PostedLicencePlateImage": "QEA=" }
application/xml, text/xml
Sample:
<GuestCarBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkJet.Models.BindingModels"> <CarBrandId>5</CarBrandId> <CarModelId>6</CarModelId> <ColorId>1</ColorId> <FirstName>sample string 2</FirstName> <ForeignPlate>true</ForeignPlate> <LastName>sample string 3</LastName> <LicencePlate>sample string 1</LicencePlate> <LicencePlateImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/ParkJet.Models" i:nil="true" /> <PhoneNumber>sample string 4</PhoneNumber> <PostedLicencePlateImage>QEA=</PostedLicencePlateImage> </GuestCarBindingModel>
application/x-www-form-urlencoded
Sample:
multipart/form-data
Sample:
Response Information
Resource Description
ServiceResponseName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
MessageId | integer |
None. |
|
Message | string |
None. |
|
Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "MessageId": 899, "Message": "\r\n", "Data": {} }
application/xml, text/xml
Sample:
<ServiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkJet.Services.Response"> <MessageLog xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string></d2p1:string> <d2p1:string></d2p1:string> </MessageLog> </ServiceResponse>