GET api/Task/{ID}?CurrentUser={CurrentUser}&WaitAccept={WaitAccept}&IsSubRunner={IsSubRunner}&Lang={Lang}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
ID | integer |
Required |
|
CurrentUser | integer |
Required |
|
WaitAccept | boolean |
Required |
|
IsSubRunner | boolean |
Required |
|
Lang | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
AssignDriverModelName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
Status | integer |
None. |
|
StatusText | string |
None. |
|
Notes | string |
None. |
|
Trucks | Collection of AssignTruckModel |
None. |
|
SupportRunnersList | Collection of RunnerModel |
None. |
|
IsSubRunner | boolean |
None. |
|
WaitReply | boolean |
None. |
|
NoOfTrucks | integer |
None. |
|
ExecutionDate | date |
None. |
|
ExecutionCount | integer |
None. |
|
AssignedByMe | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "ID": 1, "Status": 1, "StatusText": "sample string 2", "Notes": "sample string 3", "Trucks": [ { "ID": 1, "TruckNumber": "sample string 1", "DriverID": 1, "DriverName": "sample string 2", "DriverMobile": "sample string 3", "Status": 1, "AcceptStatus": 1, "AcceptStatusText": "sample string 4" }, { "ID": 1, "TruckNumber": "sample string 1", "DriverID": 1, "DriverName": "sample string 2", "DriverMobile": "sample string 3", "Status": 1, "AcceptStatus": 1, "AcceptStatusText": "sample string 4" } ], "SupportRunnersList": [ { "ID": 1, "Name": "sample string 1", "AssignedNumber": 1, "AcceptStatus": 1, "AcceptStatusText": "sample string 2" }, { "ID": 1, "Name": "sample string 1", "AssignedNumber": 1, "AcceptStatus": 1, "AcceptStatusText": "sample string 2" } ], "IsSubRunner": true, "WaitReply": true, "NoOfTrucks": 1, "ExecutionDate": "2024-12-23T15:27:42.1796023+02:00", "ExecutionCount": 1, "AssignedByMe": true }
application/xml, text/xml
Sample:
<AssignDriverModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models"> <AssignedByMe>true</AssignedByMe> <ExecutionCount>1</ExecutionCount> <ExecutionDate>2024-12-23T15:27:42.1796023+02:00</ExecutionDate> <ID>1</ID> <IsSubRunner>true</IsSubRunner> <NoOfTrucks>1</NoOfTrucks> <Notes>sample string 3</Notes> <Status>1</Status> <StatusText>sample string 2</StatusText> <SupportRunnersList> <RunnerModel> <AcceptStatus>1</AcceptStatus> <AcceptStatusText>sample string 2</AcceptStatusText> <AssignedNumber>1</AssignedNumber> <ID>1</ID> <Name>sample string 1</Name> </RunnerModel> <RunnerModel> <AcceptStatus>1</AcceptStatus> <AcceptStatusText>sample string 2</AcceptStatusText> <AssignedNumber>1</AssignedNumber> <ID>1</ID> <Name>sample string 1</Name> </RunnerModel> </SupportRunnersList> <Trucks> <AssignTruckModel> <AcceptStatus>1</AcceptStatus> <AcceptStatusText>sample string 4</AcceptStatusText> <DriverID>1</DriverID> <DriverMobile>sample string 3</DriverMobile> <DriverName>sample string 2</DriverName> <ID>1</ID> <Status>1</Status> <TruckNumber>sample string 1</TruckNumber> </AssignTruckModel> <AssignTruckModel> <AcceptStatus>1</AcceptStatus> <AcceptStatusText>sample string 4</AcceptStatusText> <DriverID>1</DriverID> <DriverMobile>sample string 3</DriverMobile> <DriverName>sample string 2</DriverName> <ID>1</ID> <Status>1</Status> <TruckNumber>sample string 1</TruckNumber> </AssignTruckModel> </Trucks> <WaitReply>true</WaitReply> </AssignDriverModel>