GET api/Cyclist/{id}/Preferences
Returns a Key Value pair which can be used to store user preferences, last lat long coordinates etc
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of CyclistPreference| Name | Description | Type | Additional information |
|---|---|---|---|
| CyclistID | integer |
None. |
|
| Key | string |
None. |
|
| Value | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"CyclistID": 1,
"Key": "sample string 2",
"Value": "sample string 3"
},
{
"CyclistID": 1,
"Key": "sample string 2",
"Value": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfCyclistPreference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO">
<CyclistPreference>
<CyclistID>1</CyclistID>
<Key>sample string 2</Key>
<Value>sample string 3</Value>
</CyclistPreference>
<CyclistPreference>
<CyclistID>1</CyclistID>
<Key>sample string 2</Key>
<Value>sample string 3</Value>
</CyclistPreference>
</ArrayOfCyclistPreference>