-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.http
More file actions
40 lines (32 loc) · 1.07 KB
/
api.http
File metadata and controls
40 lines (32 loc) · 1.07 KB
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
// Retrieve user jwt
# @name getJwt
POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=AIzaSyBACUWr3lGje0_g5Sra74gNv8ATBZM7UnE
Content-Type: application/json
{
"email": "john.kueh@gmail.com",
"password": "password",
"returnSecureToken": true
}
###
@jwt = {{getJwt.response.body.$.idToken}}
###
GET {{apiBaseUrl}}/api/trpc/user.current
Content-Type: application/json
Authorization: Bearer {{jwt}}
###
GET {{apiBaseUrl}}/api/trpc/greeting.all
Content-Type: application/json
Authorization: Bearer {{jwt}}
###
GET {{apiBaseUrl}}/api/trpc/greeting.byId?input=%7B%0A%20%20%20%20%20%20%20%20%22id%22%3A%2015%0A%20%20%20%20%7D
Content-Type: application/json
Authorization: Bearer {{jwt}}
###
# @name unauthenticated
GET {{apiBaseUrl}}/api/trpc/greeting.byId?input=%7B%0A%20%20%20%20%20%20%20%20%22id%22%3A%2020%0A%20%20%20%20%7D
Content-Type: application/json
###
# @name forbidden
GET {{apiBaseUrl}}/api/trpc/greeting.byId?input=%7B%0A%20%20%20%20%20%20%20%20%22id%22%3A%2020%0A%20%20%20%20%7D
Content-Type: application/json
Authorization: Bearer {{jwt}}