Files
services/examples/event/publish/curl/publishAnEvent.sh

11 lines
231 B
Bash
Executable File

curl "http://localhost:8080/event/Publish" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{
"message": {
"id": "1",
"type": "signup",
"user": "john"
},
"topic": "user"
}'