-
Notifications
You must be signed in to change notification settings - Fork 1
/
apiary.apib
52 lines (33 loc) · 1.22 KB
/
apiary.apib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FORMAT: 1A
HOST: http://localhost:9000
# PSUG demo
PSUG Demo API specification.
# Data Structures
## Activity
- id: 684908385 (required, number) - Activity Id
- start_date: `2016-08-22T06:23:57Z` (required, string) - Activity date
- athlete: 304460 (required, number) - Athlete Id
- distance: 43622.7 (required, number) - Distance in meters
# Group health check
## Status [/status]
### Get application status [GET]
+ Response 200 (application/json; charset=utf-8)
+ Attributes
- version: `1.0-89518a4` (required, string) - Application version
- build time: `2016-08-24 12:53:05.197` (required, string)
- checks
- name: `demopsug (Postgresql)` (required, string) - Check name
- test: `SELECT 1` (required, string) - Test details
- status: 200 (required, number)
- message (optional, string)
# Group strava
## Load activities [/activities/load{?token}]
+ Parameters
- token: `xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx` (required, string) - User strava token
## Load recent activities [POST]
+ Response 204
## Activities [/activities]
### List activities [GET]
Return all activities stored in DB
+ Response 200 (application/json; charset=utf-8)
+ Attributes (array[Activity])