-
Notifications
You must be signed in to change notification settings - Fork 0
/
development.http
54 lines (38 loc) · 1.19 KB
/
development.http
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
53
54
/// With oauth enabled, the dummy token needs to be replaced by a real token.
/// Use Google OAuth2 Playground to get a token.
///
/// * Go to https://developers.google.com/oauthplayground/
/// * Select and authorize the scope: https://www.googleapis.com/auth/userinfo.email
/// * Click "Exchange authorization code for tokens"
/// * Copy the id token and replace the dummy token below.
/// GET all sessions
GET http://localhost:3000/api/v1/sessions/
Authorization: Bearer dummy
###
/// Update sessions
POST http://localhost:3000/api/v1/sessions/
Authorization: Bearer dummy
###
/// Get current user
GET http://localhost:3000/api/v1/users/me
Authorization: Bearer dummy
###
/// Bootstrap user
POST http://localhost:3000/api/v1/users/
Authorization: Bearer dummy
{
"email": "[email protected]"
}
###
/// Join session
GET http://localhost:3000/api/v1/sessions/fb2193e4-9516-47a7-8741-b84eb3242d4d/join
Authorization: Bearer dummy
###
/// Get session
GET http://localhost:3000/api/v1/sessions/fb2193e4-9516-47a7-8741-b84eb3242d4d
Authorization: Bearer dummy
###
/// Leave session
GET http://localhost:3000/api/v1/sessions/fb2193e4-9516-47a7-8741-b84eb3242d4d/leave
Authorization: Bearer dummy
###