Home / API / ASP.NET Web API Details

GET api/v1/Setup/GetRouteListByBranchId?branchid={branchid}

Description

Get List Of All Route Information By BranchId

Request Information

Parameters

NameDescriptionAdditional information
branchid
BranchId

Define this parameter in the request URI.

Response Information

List of Route Information

Response body formats

application/json, text/json

Sample:
[
  {
    "branches": [
      {
        "branchid": 1,
        "branchname": "sample string 2"
      },
      {
        "branchid": 1,
        "branchname": "sample string 2"
      }
    ],
    "routeid": 1,
    "routename": "sample string 2",
    "isactive": 3,
    "companyid": 4,
    "utctimestamp": "2025-02-23T06:06:45.3903162+00:00",
    "lastchanged": "2025-02-23T06:06:45.3903162+00:00",
    "lastchangedby": "sample string 5",
    "createdby": "sample string 6",
    "defaultemployeeid": 7,
    "mapdrivercostunit": 8,
    "mapendaddress": "sample string 9",
    "mapendcity": "sample string 10",
    "mapendstate": "sample string 11",
    "mapendtime": 12,
    "mapendtitle": "sample string 13",
    "mapendzip": "sample string 14",
    "mapfuelconsumptioncity": 15,
    "mapfuelconsumptionhwy": 16,
    "mapfuelconsumptionunit": 17,
    "mapfuelcost": 18.0,
    "mapfueltankcapacity": 19,
    "mapfueltankunits": 20,
    "mapspeedarterial": 21,
    "mapspeedinterstate": 22,
    "mapspeedlimitedhwy": 23,
    "mapspeedotherhwy": 24,
    "mapspeedstreet": 25,
    "mapstartaddress": "sample string 26",
    "mapstartcity": "sample string 27",
    "mapstartstate": "sample string 28",
    "mapstarttime": 29,
    "mapstarttitle": "sample string 30",
    "mapstartzip": "sample string 31",
    "isnotify": 32,
    "startaddressid": 33,
    "endaddressid": 34,
    "country": 35,
    "vieworder": 36
  },
  {
    "branches": [
      {
        "branchid": 1,
        "branchname": "sample string 2"
      },
      {
        "branchid": 1,
        "branchname": "sample string 2"
      }
    ],
    "routeid": 1,
    "routename": "sample string 2",
    "isactive": 3,
    "companyid": 4,
    "utctimestamp": "2025-02-23T06:06:45.3903162+00:00",
    "lastchanged": "2025-02-23T06:06:45.3903162+00:00",
    "lastchangedby": "sample string 5",
    "createdby": "sample string 6",
    "defaultemployeeid": 7,
    "mapdrivercostunit": 8,
    "mapendaddress": "sample string 9",
    "mapendcity": "sample string 10",
    "mapendstate": "sample string 11",
    "mapendtime": 12,
    "mapendtitle": "sample string 13",
    "mapendzip": "sample string 14",
    "mapfuelconsumptioncity": 15,
    "mapfuelconsumptionhwy": 16,
    "mapfuelconsumptionunit": 17,
    "mapfuelcost": 18.0,
    "mapfueltankcapacity": 19,
    "mapfueltankunits": 20,
    "mapspeedarterial": 21,
    "mapspeedinterstate": 22,
    "mapspeedlimitedhwy": 23,
    "mapspeedotherhwy": 24,
    "mapspeedstreet": 25,
    "mapstartaddress": "sample string 26",
    "mapstartcity": "sample string 27",
    "mapstartstate": "sample string 28",
    "mapstarttime": 29,
    "mapstarttitle": "sample string 30",
    "mapstartzip": "sample string 31",
    "isnotify": 32,
    "startaddressid": 33,
    "endaddressid": 34,
    "country": 35,
    "vieworder": 36
  }
]

application/xml, text/xml

Sample:
<ArrayOfsetuproutemodel2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <setuproutemodel2>
    <companyid>4</companyid>
    <country>35</country>
    <createdby>sample string 6</createdby>
    <defaultemployeeid>7</defaultemployeeid>
    <endaddressid>34</endaddressid>
    <isactive>3</isactive>
    <isnotify>32</isnotify>
    <lastchanged>2025-02-23T06:06:45.3903162+00:00</lastchanged>
    <lastchangedby>sample string 5</lastchangedby>
    <mapdrivercostunit>8</mapdrivercostunit>
    <mapendaddress>sample string 9</mapendaddress>
    <mapendcity>sample string 10</mapendcity>
    <mapendstate>sample string 11</mapendstate>
    <mapendtime>12</mapendtime>
    <mapendtitle>sample string 13</mapendtitle>
    <mapendzip>sample string 14</mapendzip>
    <mapfuelconsumptioncity>15</mapfuelconsumptioncity>
    <mapfuelconsumptionhwy>16</mapfuelconsumptionhwy>
    <mapfuelconsumptionunit>17</mapfuelconsumptionunit>
    <mapfuelcost>18</mapfuelcost>
    <mapfueltankcapacity>19</mapfueltankcapacity>
    <mapfueltankunits>20</mapfueltankunits>
    <mapspeedarterial>21</mapspeedarterial>
    <mapspeedinterstate>22</mapspeedinterstate>
    <mapspeedlimitedhwy>23</mapspeedlimitedhwy>
    <mapspeedotherhwy>24</mapspeedotherhwy>
    <mapspeedstreet>25</mapspeedstreet>
    <mapstartaddress>sample string 26</mapstartaddress>
    <mapstartcity>sample string 27</mapstartcity>
    <mapstartstate>sample string 28</mapstartstate>
    <mapstarttime>29</mapstarttime>
    <mapstarttitle>sample string 30</mapstarttitle>
    <mapstartzip>sample string 31</mapstartzip>
    <routeid>1</routeid>
    <routename>sample string 2</routename>
    <startaddressid>33</startaddressid>
    <utctimestamp>2025-02-23T06:06:45.3903162+00:00</utctimestamp>
    <vieworder>36</vieworder>
    <branches>
      <setupbranchresume>
        <branchid>1</branchid>
        <branchname>sample string 2</branchname>
      </setupbranchresume>
      <setupbranchresume>
        <branchid>1</branchid>
        <branchname>sample string 2</branchname>
      </setupbranchresume>
    </branches>
  </setuproutemodel2>
  <setuproutemodel2>
    <companyid>4</companyid>
    <country>35</country>
    <createdby>sample string 6</createdby>
    <defaultemployeeid>7</defaultemployeeid>
    <endaddressid>34</endaddressid>
    <isactive>3</isactive>
    <isnotify>32</isnotify>
    <lastchanged>2025-02-23T06:06:45.3903162+00:00</lastchanged>
    <lastchangedby>sample string 5</lastchangedby>
    <mapdrivercostunit>8</mapdrivercostunit>
    <mapendaddress>sample string 9</mapendaddress>
    <mapendcity>sample string 10</mapendcity>
    <mapendstate>sample string 11</mapendstate>
    <mapendtime>12</mapendtime>
    <mapendtitle>sample string 13</mapendtitle>
    <mapendzip>sample string 14</mapendzip>
    <mapfuelconsumptioncity>15</mapfuelconsumptioncity>
    <mapfuelconsumptionhwy>16</mapfuelconsumptionhwy>
    <mapfuelconsumptionunit>17</mapfuelconsumptionunit>
    <mapfuelcost>18</mapfuelcost>
    <mapfueltankcapacity>19</mapfueltankcapacity>
    <mapfueltankunits>20</mapfueltankunits>
    <mapspeedarterial>21</mapspeedarterial>
    <mapspeedinterstate>22</mapspeedinterstate>
    <mapspeedlimitedhwy>23</mapspeedlimitedhwy>
    <mapspeedotherhwy>24</mapspeedotherhwy>
    <mapspeedstreet>25</mapspeedstreet>
    <mapstartaddress>sample string 26</mapstartaddress>
    <mapstartcity>sample string 27</mapstartcity>
    <mapstartstate>sample string 28</mapstartstate>
    <mapstarttime>29</mapstarttime>
    <mapstarttitle>sample string 30</mapstarttitle>
    <mapstartzip>sample string 31</mapstartzip>
    <routeid>1</routeid>
    <routename>sample string 2</routename>
    <startaddressid>33</startaddressid>
    <utctimestamp>2025-02-23T06:06:45.3903162+00:00</utctimestamp>
    <vieworder>36</vieworder>
    <branches>
      <setupbranchresume>
        <branchid>1</branchid>
        <branchname>sample string 2</branchname>
      </setupbranchresume>
      <setupbranchresume>
        <branchid>1</branchid>
        <branchname>sample string 2</branchname>
      </setupbranchresume>
    </branches>
  </setuproutemodel2>
</ArrayOfsetuproutemodel2>