Gear list
curl --request GET \
--url https://api.rewind.rest/v1/running/gear \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rewind.rest/v1/running/gear', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.rewind.rest/v1/running/gear"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "g12345",
"name": "Nike Pegasus 40",
"brand": "Nike",
"model": "Pegasus 40",
"distance_mi": 342.5,
"is_retired": false,
"activity_count": 85
},
{
"id": "g12346",
"name": "Brooks Ghost 15",
"brand": "Brooks",
"model": "Ghost 15",
"distance_mi": 512.3,
"is_retired": true,
"activity_count": 130
}
]
}{
"error": "Not found",
"status": 404
}Running
Gear list
Returns all gear/shoes with activity counts.
GET
/
v1
/
running
/
gear
Gear list
curl --request GET \
--url https://api.rewind.rest/v1/running/gear \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rewind.rest/v1/running/gear', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.rewind.rest/v1/running/gear"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "g12345",
"name": "Nike Pegasus 40",
"brand": "Nike",
"model": "Pegasus 40",
"distance_mi": 342.5,
"is_retired": false,
"activity_count": 85
},
{
"id": "g12346",
"name": "Brooks Ghost 15",
"brand": "Brooks",
"model": "Ghost 15",
"distance_mi": 512.3,
"is_retired": true,
"activity_count": 130
}
]
}{
"error": "Not found",
"status": 404
}⌘I