GET api/Gear/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
GearModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
When adding gear, ensure id=0 |
integer |
None. |
| BikeID |
Links gear to bike |
integer |
None. |
| TypeID | integer |
None. |
|
| TypeDescription |
Lookup field, based on typeid |
string |
None. |
| Manufacturer | string |
None. |
|
| Description | string |
None. |
|
| DateAdded | date |
None. |
|
| Model | string |
None. |
|
| KmReadingWhenAdded |
Calculated field based on rides and date added |
integer |
None. |
| KmReadingNow |
Calcualted field, based on Bike KM |
integer |
None. |
| KmServiceInterval |
Provide number >0 if gear has a km based service interval |
integer |
None. |
| KmReadingOfNextService |
Calculated field based on rides and date added |
integer |
None. |
| KmReadingLastService |
Calculated field based on rides and last service |
integer |
None. |
| MinutesReadingWhenAdded |
Calculated field based on rides and date added |
integer |
None. |
| MinutesReadingNow |
Calculated field based on current total ride time on bike |
integer |
None. |
| TotalHours | integer |
None. |
|
| MinutesServiceInterval |
Provde number > 0 if gear has an hours based service interval |
integer |
None. |
| MinutesReadingOfNextService |
Calculated field based on rides and date added |
integer |
None. |
| MinutesReadingOfLastService |
Calculated field based on rides and last service |
integer |
None. |
| MinutesToNextService |
Calculated field, based on rides since added and service interval |
integer |
None. |
| HoursToNextService | integer |
None. |
|
| MonthsServiceInterval | integer |
None. |
|
| KmToNextService |
Calculated field, based on rides since added and service interval |
integer |
None. |
| KmSinceLastService | integer |
None. |
|
| TotalKm | integer |
None. |
|
| LastService | date |
None. |
|
| SKU | string |
None. |
|
| StatusID |
1 - active, 2 - retired. A list can be found on api/Lookup |
integer |
None. |
| Status |
Readonly field returning value based on statusid |
string |
None. |
| ServicePercentage |
Calcualted based on time or km based service interval and the km/hours done since last service |
integer |
None. |
| IsOriginal |
Calculated property |
boolean |
None. |
| IsStandard |
Calculated property |
boolean |
None. |
| UnitsOfMeasureID | integer |
None. |
Response Formats
application/json, text/json
{
"ID": 1,
"BikeID": 2,
"TypeID": 3,
"TypeDescription": "sample string 4",
"Manufacturer": "sample string 5",
"Description": "sample string 6",
"DateAdded": "2026-03-20T22:28:34.5505503+00:00",
"Model": "sample string 8",
"KmReadingWhenAdded": 9,
"KmReadingNow": 10,
"KmServiceInterval": 11,
"KmReadingOfNextService": 12,
"KmReadingLastService": 13,
"MinutesReadingWhenAdded": 14,
"MinutesReadingNow": 15,
"TotalHours": 16,
"MinutesServiceInterval": 17,
"MinutesReadingOfNextService": 18,
"MinutesReadingOfLastService": 19,
"MinutesToNextService": 20,
"HoursToNextService": 21,
"MonthsServiceInterval": 22,
"KmToNextService": 23,
"KmSinceLastService": 24,
"TotalKm": 25,
"LastService": "2026-03-20T22:28:34.5505503+00:00",
"SKU": "sample string 27",
"StatusID": 28,
"Status": "sample string 29",
"ServicePercentage": 30,
"IsOriginal": true,
"IsStandard": true,
"UnitsOfMeasureID": 33
}
application/xml, text/xml
<GearModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO"> <BikeID>2</BikeID> <DateAdded>2026-03-20T22:28:34.5505503+00:00</DateAdded> <Description>sample string 6</Description> <HoursToNextService>21</HoursToNextService> <ID>1</ID> <IsOriginal>true</IsOriginal> <IsStandard>true</IsStandard> <KmReadingLastService>13</KmReadingLastService> <KmReadingNow>10</KmReadingNow> <KmReadingOfNextService>12</KmReadingOfNextService> <KmReadingWhenAdded>9</KmReadingWhenAdded> <KmServiceInterval>11</KmServiceInterval> <KmSinceLastService>24</KmSinceLastService> <KmToNextService>23</KmToNextService> <LastService>2026-03-20T22:28:34.5505503+00:00</LastService> <Manufacturer>sample string 5</Manufacturer> <MinutesReadingNow>15</MinutesReadingNow> <MinutesReadingOfLastService>19</MinutesReadingOfLastService> <MinutesReadingOfNextService>18</MinutesReadingOfNextService> <MinutesReadingWhenAdded>14</MinutesReadingWhenAdded> <MinutesServiceInterval>17</MinutesServiceInterval> <MinutesToNextService>20</MinutesToNextService> <Model>sample string 8</Model> <MonthsServiceInterval>22</MonthsServiceInterval> <SKU>sample string 27</SKU> <ServicePercentage>30</ServicePercentage> <Status>sample string 29</Status> <StatusID>28</StatusID> <TotalHours>16</TotalHours> <TotalKm>25</TotalKm> <TypeDescription>sample string 4</TypeDescription> <TypeID>3</TypeID> <UnitsOfMeasureID>33</UnitsOfMeasureID> </GearModel>