-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfolio.http
More file actions
46 lines (38 loc) · 862 Bytes
/
folio.http
File metadata and controls
46 lines (38 loc) · 862 Bytes
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
@OKAPIURL={{$dotenv OKAPIURL}}
@OKAPITENANT={{$dotenv OKAPITENANT}}
@OKAPIUSER={{$dotenv OKAPIUSER}}
@OKAPIPWD={{$dotenv OKAPIPWD}}
#Login Kong
POST {{OKAPIURL}}/authn/login-with-expiry
Accept: application/json
Content-Type: application/json
x-okapi-tenant: {{OKAPITENANT}}
{
"username":"{{OKAPIUSER}}",
"password":"{{OKAPIPWD}}"
}
###
# Get User
GET {{OKAPIURL}}/users?query=username=6202048093
Accept: application/json
x-okapi-tenant: {{OKAPITENANT}}
###
# Post pin
POST {{OKAPIURL}}/patron-pin
Accept: text/plain
Content-Type: application/json
x-okapi-tenant: {{OKAPITENANT}}
{
"id":"9082261a-0305-4242-a371-96348a4025ec",
"pin":"189404"
}
###
# Verify pin
POST {{OKAPIURL}}/patron-pin/verify
Accept: text/plain
Content-Type: application/json
x-okapi-tenant: {{OKAPITENANT}}
{
"id":"9082261a-0305-4242-a371-96348a4025ec",
"pin":"181818"
}