POST api/file/saveMap
Request Information
URI Parameters
None.
Body Parameters
SaveMapRequestName | Description | Type | Additional information |
---|---|---|---|
BookingNumber | string |
None. |
|
PickupPoint | CoordinateRequest |
None. |
|
DropoffPoint | CoordinateRequest |
None. |
|
ViaPoints | Collection of CoordinateRequest |
None. |
|
Route | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "BookingNumber": "sample string 1", "PickupPoint": { "Lat": "sample string 1", "Long": "sample string 2" }, "DropoffPoint": { "Lat": "sample string 1", "Long": "sample string 2" }, "ViaPoints": [ { "Lat": "sample string 1", "Long": "sample string 2" }, { "Lat": "sample string 1", "Long": "sample string 2" } ], "Route": "sample string 2" }
application/xml, text/xml
Sample:
<SaveMapRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaTransfer_Document_Uploading.Models.MapDownload"> <BookingNumber>sample string 1</BookingNumber> <DropoffPoint> <Lat>sample string 1</Lat> <Long>sample string 2</Long> </DropoffPoint> <PickupPoint> <Lat>sample string 1</Lat> <Long>sample string 2</Long> </PickupPoint> <Route>sample string 2</Route> <ViaPoints> <CoordinateRequest> <Lat>sample string 1</Lat> <Long>sample string 2</Long> </CoordinateRequest> <CoordinateRequest> <Lat>sample string 1</Lat> <Long>sample string 2</Long> </CoordinateRequest> </ViaPoints> </SaveMapRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SavedMapResponseName | Description | Type | Additional information |
---|---|---|---|
Status | boolean |
None. |
|
Message | string |
None. |
|
StatusCode | integer |
None. |
|
Data | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": true, "Message": "sample string 2", "StatusCode": 3, "Data": "sample string 4" }
application/xml, text/xml
Sample:
<SavedMapResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaTransfer_Document_Uploading.Models.FileUpload"> <Data>sample string 4</Data> <Message>sample string 2</Message> <Status>true</Status> <StatusCode>3</StatusCode> </SavedMapResponse>