Skip to content

Commit

Permalink
chore: update http api
Browse files Browse the repository at this point in the history
  • Loading branch information
elsbrock committed Dec 27, 2023
1 parent 7d07edc commit 73d45f0
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions custom_components/cowboy/api.http
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ Client: {{client}}

###

# @name me_activities_trend
GET {{baseUrl}}/users/me/activities/trend HTTP/1.1
content-type: application/json
X-Cowboy-App-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
Access-Token: {{accessToken}}
Client-Type: Android-App
Uid: {{uid}}
Client: {{client}}

###

# @name me_records
GET {{baseUrl}}/users/me/personal_records HTTP/1.1
content-type: application/json
Expand Down Expand Up @@ -123,6 +134,15 @@ Client: {{client}}

###########################

# @name trips
GET {{baseUrl}}/trips HTTP/1.1
content-type: application/json
X-Cowboy-App-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
Access-Token: {{accessToken}}
Client-Type: Android-App
Uid: {{uid}}
Client: {{client}}

# @name trips_offset
GET {{baseUrl}}/trips/offset HTTP/1.1
content-type: application/json
Expand All @@ -145,6 +165,17 @@ Client: {{client}}

###

# @name trips_chart
GET {{baseUrl}}/trips/chart?from=2020-12-25T19:00:05Z&to=2023-12-27T19:00:05Z HTTP/1.1
content-type: application/json
X-Cowboy-App-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
Access-Token: {{accessToken}}
Client-Type: Android-App
Uid: {{uid}}
Client: {{client}}

###

# @name trips_metrics
GET {{baseUrl}}/trips/metrics/stats HTTP/1.1
content-type: application/json
Expand Down Expand Up @@ -230,3 +261,18 @@ Access-Token: {{accessToken}}
Client-Type: Android-App
Uid: {{uid}}
Client: {{client}}

###

# @name dashboard_data
POST {{baseUrl}}/dashboard_data HTTP/1.1
content-type: application/json
X-Cowboy-App-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
Access-Token: {{accessToken}}
Client-Type: Android-App
Uid: {{uid}}
Client: {{client}}

{
"bike": "{{bikeId}}"
}

0 comments on commit 73d45f0

Please sign in to comment.