mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 10:54:28 +00:00
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
|
|
{
|
|
"publish": [{
|
|
"title": "Publish an event",
|
|
"description": "Publish an event to a topic",
|
|
"run_check": true,
|
|
"request": {
|
|
"topic": "user",
|
|
"message": {"id": "1", "type": "signup", "user": "john"}
|
|
},
|
|
"response": {}
|
|
}],
|
|
"consume": [{
|
|
"title": "Consume from a topic",
|
|
"description": "Consume events from a given topic",
|
|
"run_check": false,
|
|
"request": {
|
|
"topic": "user"
|
|
},
|
|
"response": {
|
|
"topic": "events",
|
|
"message": {"id": "1", "type": "signup", "user": "john"}
|
|
}
|
|
}],
|
|
"read": [{
|
|
"title": "Read events on a topic",
|
|
"description": "Read historic events sent to a topic",
|
|
"run_check": false,
|
|
"request": {
|
|
"topic": "user"
|
|
},
|
|
"response": {
|
|
"events": [
|
|
{"id": "123e4567-e89b-12d3-a456-426652340000", "message": {"id": "1", "type": "signup", "user": "john"}}
|
|
]
|
|
}
|
|
}]
|
|
}
|