Files
services/examples/mq/publish/curl/publishAMessage.sh

11 lines
230 B
Bash
Executable File

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