mirror of
https://github.com/datarhei/core.git
synced 2025-10-04 15:42:57 +08:00
Add event filter support
This commit is contained in:
32
docs/docs.go
32
docs/docs.go
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user