GET api/Partner/{id}/GetCyclistDashboardInfo/{hours}/ServiceWithinHours
Provides a list of bikes to be serviced within x hours
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
|
| hours | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of BikeWithCyclistModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Surname | string |
None. |
|
| string |
None. |
||
| PhoneNumber | string |
None. |
|
| ID |
When adding a bike, ensure id = 0 |
integer |
None. |
| TypeID | integer |
None. |
|
| Type |
Readonly property returned when you fetch a bike |
string |
None. |
| UserID |
Links bike to user |
integer |
None. |
| CyclistDescription |
Readonly property returned when you fetch a bike |
string |
None. |
| RefNo | string |
None. |
|
| SerialNo | string |
None. |
|
| Manufacturer | string |
None. |
|
| Model | string |
None. |
|
| Colour | string |
None. |
|
| ModelYear | integer |
None. |
|
| Km |
This is a calculated value - calculated from the sum of rides. To start off with a number of kms, insert one ride entry in the past with the required no of kms (note that rides are in meters) |
decimal number |
None. |
| MovingTime |
This is a calculated value - calculated from the sum of rides. Minutes |
integer |
None. |
| LastService | date |
None. |
|
| DateBought | date |
None. |
|
| StatusID |
Valid vales = 1, 2: lookup list of values with descriptions can be found on api/lookup |
integer |
None. |
| Status |
Readonly property returned when you fetch a bike |
string |
None. |
| MinutesToNextService |
Calculated based on service intervals of gear items, when they were added, and rides taken since, returns value of first item requiring service |
integer |
None. |
| HoursToNextService | integer |
None. |
|
| KmToNextService |
Calculated based on service intervals of gear items, when they were added, and rides taken since, returns value of first item requiring service |
integer |
None. |
| KmSinceLastService |
Calculated field based on last service date and rides since |
integer |
None. |
| MovingTimeSinceLastService |
Calculated field based on last service date and rides since in minutes |
integer |
None. |
| ImageURL |
Field is populated by uploading an image for a bike. |
string |
None. |
| ServicePercentage |
Calculated from the service percentages on gear |
integer |
None. |
| Strava_Id | string |
None. |
|
| IntegrationStatusID | integer |
None. |
|
| OpeningKm | integer |
None. |
|
| OpeningHours | integer |
None. |
|
| UnitsOfMeasureID | integer |
None. |
|
| HasKMBasedGear | boolean |
None. |
|
| HasHourBasedGear | boolean |
None. |
|
| BikeSize | string |
None. |
|
| PartnerType | integer |
None. |
Response Formats
application/json, text/json
[
{
"Name": "sample string 1",
"Surname": "sample string 2",
"Email": "sample string 3",
"PhoneNumber": "sample string 4",
"ID": 5,
"TypeID": 6,
"Type": "sample string 7",
"UserID": 8,
"CyclistDescription": "sample string 9",
"RefNo": "sample string 10",
"SerialNo": "sample string 11",
"Manufacturer": "sample string 12",
"Model": "sample string 13",
"Colour": "sample string 14",
"ModelYear": 15,
"Km": 16.1,
"MovingTime": 17,
"LastService": "2026-03-21T11:27:28.3467765+00:00",
"DateBought": "2026-03-21T11:27:28.3467765+00:00",
"StatusID": 18,
"Status": "sample string 19",
"MinutesToNextService": 20,
"HoursToNextService": 21,
"KmToNextService": 22,
"KmSinceLastService": 23,
"MovingTimeSinceLastService": 24,
"ImageURL": "sample string 25",
"ServicePercentage": 26,
"Strava_Id": "sample string 27",
"IntegrationStatusID": 28,
"OpeningKm": 29,
"OpeningHours": 30,
"UnitsOfMeasureID": 31,
"HasKMBasedGear": true,
"HasHourBasedGear": true,
"BikeSize": "sample string 34",
"PartnerType": 35
},
{
"Name": "sample string 1",
"Surname": "sample string 2",
"Email": "sample string 3",
"PhoneNumber": "sample string 4",
"ID": 5,
"TypeID": 6,
"Type": "sample string 7",
"UserID": 8,
"CyclistDescription": "sample string 9",
"RefNo": "sample string 10",
"SerialNo": "sample string 11",
"Manufacturer": "sample string 12",
"Model": "sample string 13",
"Colour": "sample string 14",
"ModelYear": 15,
"Km": 16.1,
"MovingTime": 17,
"LastService": "2026-03-21T11:27:28.3467765+00:00",
"DateBought": "2026-03-21T11:27:28.3467765+00:00",
"StatusID": 18,
"Status": "sample string 19",
"MinutesToNextService": 20,
"HoursToNextService": 21,
"KmToNextService": 22,
"KmSinceLastService": 23,
"MovingTimeSinceLastService": 24,
"ImageURL": "sample string 25",
"ServicePercentage": 26,
"Strava_Id": "sample string 27",
"IntegrationStatusID": 28,
"OpeningKm": 29,
"OpeningHours": 30,
"UnitsOfMeasureID": 31,
"HasKMBasedGear": true,
"HasHourBasedGear": true,
"BikeSize": "sample string 34",
"PartnerType": 35
}
]
application/xml, text/xml
<ArrayOfBikeWithCyclistModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO">
<BikeWithCyclistModel>
<BikeSize>sample string 34</BikeSize>
<Colour>sample string 14</Colour>
<CyclistDescription>sample string 9</CyclistDescription>
<DateBought>2026-03-21T11:27:28.3467765+00:00</DateBought>
<HasHourBasedGear>true</HasHourBasedGear>
<HasKMBasedGear>true</HasKMBasedGear>
<HoursToNextService>21</HoursToNextService>
<ID>5</ID>
<ImageURL>sample string 25</ImageURL>
<IntegrationStatusID>28</IntegrationStatusID>
<Km>16.1</Km>
<KmSinceLastService>23</KmSinceLastService>
<KmToNextService>22</KmToNextService>
<LastService>2026-03-21T11:27:28.3467765+00:00</LastService>
<Manufacturer>sample string 12</Manufacturer>
<MinutesToNextService>20</MinutesToNextService>
<Model>sample string 13</Model>
<ModelYear>15</ModelYear>
<MovingTime>17</MovingTime>
<MovingTimeSinceLastService>24</MovingTimeSinceLastService>
<OpeningHours>30</OpeningHours>
<OpeningKm>29</OpeningKm>
<PartnerType>35</PartnerType>
<RefNo>sample string 10</RefNo>
<SerialNo>sample string 11</SerialNo>
<ServicePercentage>26</ServicePercentage>
<Status>sample string 19</Status>
<StatusID>18</StatusID>
<Strava_Id>sample string 27</Strava_Id>
<Type>sample string 7</Type>
<TypeID>6</TypeID>
<UnitsOfMeasureID>31</UnitsOfMeasureID>
<UserID>8</UserID>
<Email>sample string 3</Email>
<Name>sample string 1</Name>
<PhoneNumber>sample string 4</PhoneNumber>
<Surname>sample string 2</Surname>
</BikeWithCyclistModel>
<BikeWithCyclistModel>
<BikeSize>sample string 34</BikeSize>
<Colour>sample string 14</Colour>
<CyclistDescription>sample string 9</CyclistDescription>
<DateBought>2026-03-21T11:27:28.3467765+00:00</DateBought>
<HasHourBasedGear>true</HasHourBasedGear>
<HasKMBasedGear>true</HasKMBasedGear>
<HoursToNextService>21</HoursToNextService>
<ID>5</ID>
<ImageURL>sample string 25</ImageURL>
<IntegrationStatusID>28</IntegrationStatusID>
<Km>16.1</Km>
<KmSinceLastService>23</KmSinceLastService>
<KmToNextService>22</KmToNextService>
<LastService>2026-03-21T11:27:28.3467765+00:00</LastService>
<Manufacturer>sample string 12</Manufacturer>
<MinutesToNextService>20</MinutesToNextService>
<Model>sample string 13</Model>
<ModelYear>15</ModelYear>
<MovingTime>17</MovingTime>
<MovingTimeSinceLastService>24</MovingTimeSinceLastService>
<OpeningHours>30</OpeningHours>
<OpeningKm>29</OpeningKm>
<PartnerType>35</PartnerType>
<RefNo>sample string 10</RefNo>
<SerialNo>sample string 11</SerialNo>
<ServicePercentage>26</ServicePercentage>
<Status>sample string 19</Status>
<StatusID>18</StatusID>
<Strava_Id>sample string 27</Strava_Id>
<Type>sample string 7</Type>
<TypeID>6</TypeID>
<UnitsOfMeasureID>31</UnitsOfMeasureID>
<UserID>8</UserID>
<Email>sample string 3</Email>
<Name>sample string 1</Name>
<PhoneNumber>sample string 4</PhoneNumber>
<Surname>sample string 2</Surname>
</BikeWithCyclistModel>
</ArrayOfBikeWithCyclistModel>