Add event filter support

This commit is contained in:
Ingo Oppermann
2023-03-23 14:50:59 +01:00
parent b84fdddd81
commit 99c571d623
9 changed files with 193 additions and 53 deletions

View File

@@ -319,12 +319,12 @@ const docTemplate = `{
],
"description": "Stream of event of whats happening in the core",
"consumes": [
"application/x-json-stream",
"text/event-stream"
"text/event-stream",
"application/x-json-stream"
],
"produces": [
"application/x-json-stream",
"text/event-stream"
"text/event-stream",
"application/x-json-stream"
],
"tags": [
"v16.?.?"
@@ -337,10 +337,7 @@ const docTemplate = `{
"name": "filters",
"in": "body",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/api.EventFilter"
}
"$ref": "#/definitions/api.EventFilters"
}
}
],
@@ -2949,14 +2946,25 @@ const docTemplate = `{
"api.EventFilter": {
"type": "object",
"properties": {
"event": {
"type": "string"
},
"filter": {
"data": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"event": {
"type": "string"
}
}
},
"api.EventFilters": {
"type": "object",
"properties": {
"filters": {
"type": "array",
"items": {
"$ref": "#/definitions/api.EventFilter"
}
}
}
},