-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.http
More file actions
49 lines (43 loc) · 1.13 KB
/
Copy pathclient.http
File metadata and controls
49 lines (43 loc) · 1.13 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
49
### REGISTER A NEW CONSUMER
POST http://localhost:8080/event/consumer
Content-Type: application/json
{
"name": "payment.processed",
"service_name": "example-service",
"repo_url": "github.com/example/repo",
"team_owner": "example-team",
"triggers": [
{
"service_name": "example-service-consumer",
"type": "persistent",
"host": "http://localhost:3333",
"path": "/worker-queue/payment/processed",
"headers": {
"Content-Type": "application/json"
},
"option": {
"queue_type": "external.medium",
"max_retries": 3,
"retention": "168h",
"unique_ttl": "60s"
}
}
]
}
### Get events
GET http://localhost:8080/events/example-service?service-name=epayment.processed
Content-Type: application/json
### Publish External Event
POST http://localhost:8080/event/publisher
Content-Type: application/json
{
"event_name": "user.created",
"data": {
"userId": "123e4567-e89b-12d3-a456-426614174000",
"email": "user@example.com",
"name": "John Doe"
}
}
####
GET http://localhost:8080/tasks/archived/external.medium
Content-Type: application/json