Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-03 21:59:46 +00:00
parent db0befe675
commit 340daa09b4
185 changed files with 186 additions and 183 deletions

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/event/Consume" \
curl "http://localhost:8080/event/Consume" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/event/Publish" \
curl "http://localhost:8080/event/Publish" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{

View File

@@ -12,9 +12,9 @@ func PublishAnEvent() {
eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := eventService.Publish(&event.PublishRequest{
Message: map[string]interface{}{
"user": "john",
"id": "1",
"type": "signup",
"user": "john",
},
Topic: "user",
})

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/event/Read" \
curl "http://localhost:8080/event/Read" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{