Home / API / ASP.NET Web API Details

GET api/v1/WorkOrder/GetWorkOrderListBlockTimeListByRouteAndScheduleDateRange?routename={routename}&from={from}&to={to}

Description

Get List of WorkOrders and Block Time Info by Routename and Scheduled Date Range

Request Information

Parameters

NameDescriptionAdditional information
routename

Define this parameter in the request URI.

from

Define this parameter in the request URI.

to

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "Date": "sample string 1",
    "WOInfoList": [
      {
        "scheduledate": "sample string 1",
        "eventname": "sample string 2",
        "programname": "sample string 3",
        "wonumber": "sample string 4",
        "routeid": 5,
        "routename": "sample string 6",
        "invoiceamount": 7.0,
        "productionamount": 8.0,
        "commissionamount": 9.0
      },
      {
        "scheduledate": "sample string 1",
        "eventname": "sample string 2",
        "programname": "sample string 3",
        "wonumber": "sample string 4",
        "routeid": 5,
        "routename": "sample string 6",
        "invoiceamount": 7.0,
        "productionamount": 8.0,
        "commissionamount": 9.0
      }
    ],
    "BlockTimeList": [
      {
        "description": "sample string 1",
        "scheduledate": "sample string 2",
        "time": "sample string 3",
        "routename": "sample string 4",
        "duration": 5,
        "createdby": "sample string 6",
        "utctimestamp": "sample string 7",
        "editedby": "sample string 8",
        "utclastchanged": "sample string 9"
      },
      {
        "description": "sample string 1",
        "scheduledate": "sample string 2",
        "time": "sample string 3",
        "routename": "sample string 4",
        "duration": 5,
        "createdby": "sample string 6",
        "utctimestamp": "sample string 7",
        "editedby": "sample string 8",
        "utclastchanged": "sample string 9"
      }
    ]
  },
  {
    "Date": "sample string 1",
    "WOInfoList": [
      {
        "scheduledate": "sample string 1",
        "eventname": "sample string 2",
        "programname": "sample string 3",
        "wonumber": "sample string 4",
        "routeid": 5,
        "routename": "sample string 6",
        "invoiceamount": 7.0,
        "productionamount": 8.0,
        "commissionamount": 9.0
      },
      {
        "scheduledate": "sample string 1",
        "eventname": "sample string 2",
        "programname": "sample string 3",
        "wonumber": "sample string 4",
        "routeid": 5,
        "routename": "sample string 6",
        "invoiceamount": 7.0,
        "productionamount": 8.0,
        "commissionamount": 9.0
      }
    ],
    "BlockTimeList": [
      {
        "description": "sample string 1",
        "scheduledate": "sample string 2",
        "time": "sample string 3",
        "routename": "sample string 4",
        "duration": 5,
        "createdby": "sample string 6",
        "utctimestamp": "sample string 7",
        "editedby": "sample string 8",
        "utclastchanged": "sample string 9"
      },
      {
        "description": "sample string 1",
        "scheduledate": "sample string 2",
        "time": "sample string 3",
        "routename": "sample string 4",
        "duration": 5,
        "createdby": "sample string 6",
        "utctimestamp": "sample string 7",
        "editedby": "sample string 8",
        "utclastchanged": "sample string 9"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfworkorderblocktimelistbyscheduledaterangebyroutemodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <workorderblocktimelistbyscheduledaterangebyroutemodel>
    <BlockTimeList>
      <blocktimeinfotoresponse>
        <createdby>sample string 6</createdby>
        <description>sample string 1</description>
        <duration>5</duration>
        <editedby>sample string 8</editedby>
        <routename>sample string 4</routename>
        <scheduledate>sample string 2</scheduledate>
        <time>sample string 3</time>
        <utclastchanged>sample string 9</utclastchanged>
        <utctimestamp>sample string 7</utctimestamp>
      </blocktimeinfotoresponse>
      <blocktimeinfotoresponse>
        <createdby>sample string 6</createdby>
        <description>sample string 1</description>
        <duration>5</duration>
        <editedby>sample string 8</editedby>
        <routename>sample string 4</routename>
        <scheduledate>sample string 2</scheduledate>
        <time>sample string 3</time>
        <utclastchanged>sample string 9</utclastchanged>
        <utctimestamp>sample string 7</utctimestamp>
      </blocktimeinfotoresponse>
    </BlockTimeList>
    <Date>sample string 1</Date>
    <WOInfoList>
      <workorderlistbyscheduledaterangebyroutemodel>
        <commissionamount>9</commissionamount>
        <eventname>sample string 2</eventname>
        <invoiceamount>7</invoiceamount>
        <productionamount>8</productionamount>
        <programname>sample string 3</programname>
        <routeid>5</routeid>
        <routename>sample string 6</routename>
        <scheduledate>sample string 1</scheduledate>
        <wonumber>sample string 4</wonumber>
      </workorderlistbyscheduledaterangebyroutemodel>
      <workorderlistbyscheduledaterangebyroutemodel>
        <commissionamount>9</commissionamount>
        <eventname>sample string 2</eventname>
        <invoiceamount>7</invoiceamount>
        <productionamount>8</productionamount>
        <programname>sample string 3</programname>
        <routeid>5</routeid>
        <routename>sample string 6</routename>
        <scheduledate>sample string 1</scheduledate>
        <wonumber>sample string 4</wonumber>
      </workorderlistbyscheduledaterangebyroutemodel>
    </WOInfoList>
  </workorderblocktimelistbyscheduledaterangebyroutemodel>
  <workorderblocktimelistbyscheduledaterangebyroutemodel>
    <BlockTimeList>
      <blocktimeinfotoresponse>
        <createdby>sample string 6</createdby>
        <description>sample string 1</description>
        <duration>5</duration>
        <editedby>sample string 8</editedby>
        <routename>sample string 4</routename>
        <scheduledate>sample string 2</scheduledate>
        <time>sample string 3</time>
        <utclastchanged>sample string 9</utclastchanged>
        <utctimestamp>sample string 7</utctimestamp>
      </blocktimeinfotoresponse>
      <blocktimeinfotoresponse>
        <createdby>sample string 6</createdby>
        <description>sample string 1</description>
        <duration>5</duration>
        <editedby>sample string 8</editedby>
        <routename>sample string 4</routename>
        <scheduledate>sample string 2</scheduledate>
        <time>sample string 3</time>
        <utclastchanged>sample string 9</utclastchanged>
        <utctimestamp>sample string 7</utctimestamp>
      </blocktimeinfotoresponse>
    </BlockTimeList>
    <Date>sample string 1</Date>
    <WOInfoList>
      <workorderlistbyscheduledaterangebyroutemodel>
        <commissionamount>9</commissionamount>
        <eventname>sample string 2</eventname>
        <invoiceamount>7</invoiceamount>
        <productionamount>8</productionamount>
        <programname>sample string 3</programname>
        <routeid>5</routeid>
        <routename>sample string 6</routename>
        <scheduledate>sample string 1</scheduledate>
        <wonumber>sample string 4</wonumber>
      </workorderlistbyscheduledaterangebyroutemodel>
      <workorderlistbyscheduledaterangebyroutemodel>
        <commissionamount>9</commissionamount>
        <eventname>sample string 2</eventname>
        <invoiceamount>7</invoiceamount>
        <productionamount>8</productionamount>
        <programname>sample string 3</programname>
        <routeid>5</routeid>
        <routename>sample string 6</routename>
        <scheduledate>sample string 1</scheduledate>
        <wonumber>sample string 4</wonumber>
      </workorderlistbyscheduledaterangebyroutemodel>
    </WOInfoList>
  </workorderblocktimelistbyscheduledaterangebyroutemodel>
</ArrayOfworkorderblocktimelistbyscheduledaterangebyroutemodel>