-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp-client.http
More file actions
48 lines (40 loc) · 1.18 KB
/
http-client.http
File metadata and controls
48 lines (40 loc) · 1.18 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
41
42
43
44
45
46
47
48
### Get access token from OIDC server
POST {{oauthUrl}}/realms/{{realm}}/protocol/openid-connect/token
Content-Type: application/x-www-form-urlencoded
grant_type = password &
client_id = {{clientId}} &
username = {{clientUsername}} &
password = {{clientSecret}}
> {%
client.global.set("access_token", response.body.access_token)
%}
### Add event
POST http://127.0.0.1:5000/events
Authorization: Bearer {{access_token}}
Content-Type: application/json
Accept: application/json
{
"AggregateId": "AggregateId-kafka-0",
"Type": "create",
"Data": "string_data"
}
### Add dynamodb event
POST http://127.0.0.1:5000/dynamodb
Authorization: Bearer {{access_token}}
Content-Type: application/json
Accept: application/json
{
"AggregateId": "AggregateId-kafka-0",
"Timestamp": "2025-01-01 00:00:00.000000+00:00",
"Type": "create",
"Data": "string_data"
}
### Get all records for AggregateId
GET 127.0.0.1:5000/dynamodb/AggregateId-kafka-0
Accept: application/json
Authorization: Bearer {{access_token}}
### Get record for AggregateId and Timestamp
GET 127.0.0.1:5000/dynamodb/AggregateId-kafka-0/2025-01-01 00:00:00.000000+00:00
Accept: application/json
Authorization: Bearer {{access_token}}
###