GET api/Bike/{id}/GetServiceLog/{logid}
Fetches a service log for this bike
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
|
logid | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
BikeServiceModelName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
BikeID |
Links to bike |
integer |
None. |
BikeDescription | string |
None. |
|
PartnerID |
Links to partner (Cycle shop) |
integer |
None. |
PartnerDescription | string |
None. |
|
CyclistID | integer |
None. |
|
CyclistDescription | string |
None. |
|
Type |
Readonly field returned when fetching |
string |
None. |
ServiceRequestID |
ServiceRequestID (Jobcard) filled in when this is done as part of a partner service, not for historic or services done by "not linked" cycle shops |
integer |
None. |
JobCardNo |
For display purposes only - if log is linked to a service request |
string |
None. |
ServiceDate |
Date of service |
date |
None. |
LastRide |
Calculated field which returns the date of the last registered ride. If no ride, last service date is returned |
date |
None. |
Rating |
Provide a 1, 2, or 3 start rating for the service |
integer |
None. |
Notes |
Provide an optional note on your service experience and work done |
string |
None. |
ServicedGear |
Only provide list of gear which was serviced |
Collection of GearServiceModel |
None. |
ReplacedGear |
Provides a list of gear which was replaced during this service |
Collection of GearServiceModel |
None. |
Response Formats
application/json, text/json
{ "ID": 1, "BikeID": 2, "BikeDescription": "sample string 3", "PartnerID": 4, "PartnerDescription": "sample string 5", "CyclistID": 6, "CyclistDescription": "sample string 7", "Type": "sample string 8", "ServiceRequestID": 9, "JobCardNo": "sample string 10", "ServiceDate": "2025-09-05T16:08:02.7024593+00:00", "LastRide": "2025-09-05T16:08:02.7024593+00:00", "Rating": 13, "Notes": "sample string 14", "ServicedGear": [ { "ID": 1, "GearID": 2, "GearDescription": "sample string 3", "Manufacturer": "sample string 4", "Model": "sample string 5", "Type": "sample string 6", "KmServiceInterval": 7, "MinutesServiceInterval": 8 }, { "ID": 1, "GearID": 2, "GearDescription": "sample string 3", "Manufacturer": "sample string 4", "Model": "sample string 5", "Type": "sample string 6", "KmServiceInterval": 7, "MinutesServiceInterval": 8 } ], "ReplacedGear": [ { "ID": 1, "GearID": 2, "GearDescription": "sample string 3", "Manufacturer": "sample string 4", "Model": "sample string 5", "Type": "sample string 6", "KmServiceInterval": 7, "MinutesServiceInterval": 8 }, { "ID": 1, "GearID": 2, "GearDescription": "sample string 3", "Manufacturer": "sample string 4", "Model": "sample string 5", "Type": "sample string 6", "KmServiceInterval": 7, "MinutesServiceInterval": 8 } ] }
application/xml, text/xml
<BikeServiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO"> <BikeDescription>sample string 3</BikeDescription> <BikeID>2</BikeID> <CyclistDescription>sample string 7</CyclistDescription> <CyclistID>6</CyclistID> <ID>1</ID> <JobCardNo>sample string 10</JobCardNo> <LastRide>2025-09-05T16:08:02.7024593+00:00</LastRide> <Notes>sample string 14</Notes> <PartnerDescription>sample string 5</PartnerDescription> <PartnerID>4</PartnerID> <Rating>13</Rating> <ReplacedGear> <GearServiceModel> <GearDescription>sample string 3</GearDescription> <GearID>2</GearID> <ID>1</ID> <KmServiceInterval>7</KmServiceInterval> <Manufacturer>sample string 4</Manufacturer> <MinutesServiceInterval>8</MinutesServiceInterval> <Model>sample string 5</Model> <Type>sample string 6</Type> </GearServiceModel> <GearServiceModel> <GearDescription>sample string 3</GearDescription> <GearID>2</GearID> <ID>1</ID> <KmServiceInterval>7</KmServiceInterval> <Manufacturer>sample string 4</Manufacturer> <MinutesServiceInterval>8</MinutesServiceInterval> <Model>sample string 5</Model> <Type>sample string 6</Type> </GearServiceModel> </ReplacedGear> <ServiceDate>2025-09-05T16:08:02.7024593+00:00</ServiceDate> <ServiceRequestID>9</ServiceRequestID> <ServicedGear> <GearServiceModel> <GearDescription>sample string 3</GearDescription> <GearID>2</GearID> <ID>1</ID> <KmServiceInterval>7</KmServiceInterval> <Manufacturer>sample string 4</Manufacturer> <MinutesServiceInterval>8</MinutesServiceInterval> <Model>sample string 5</Model> <Type>sample string 6</Type> </GearServiceModel> <GearServiceModel> <GearDescription>sample string 3</GearDescription> <GearID>2</GearID> <ID>1</ID> <KmServiceInterval>7</KmServiceInterval> <Manufacturer>sample string 4</Manufacturer> <MinutesServiceInterval>8</MinutesServiceInterval> <Model>sample string 5</Model> <Type>sample string 6</Type> </GearServiceModel> </ServicedGear> <Type>sample string 8</Type> </BikeServiceModel>