Fix swagger documentation for /api/v3/events

This commit is contained in:
Ingo Oppermann
2023-03-23 19:46:24 +01:00
parent 99c571d623
commit 094e666926
4 changed files with 4 additions and 8 deletions

View File

@@ -319,8 +319,7 @@ const docTemplate = `{
],
"description": "Stream of event of whats happening in the core",
"consumes": [
"text/event-stream",
"application/x-json-stream"
"application/json"
],
"produces": [
"text/event-stream",

View File

@@ -312,8 +312,7 @@
],
"description": "Stream of event of whats happening in the core",
"consumes": [
"text/event-stream",
"application/x-json-stream"
"application/json"
],
"produces": [
"text/event-stream",

View File

@@ -2201,8 +2201,7 @@ paths:
/api/v3/events:
post:
consumes:
- text/event-stream
- application/x-json-stream
- application/json
description: Stream of event of whats happening in the core
operationId: events
parameters:

View File

@@ -31,8 +31,7 @@ func NewEvents(events log.ChannelWriter) *EventsHandler {
// @Description Stream of event of whats happening in the core
// @ID events
// @Tags v16.?.?
// @Accept text/event-stream
// @Accept json-stream
// @Accept json
// @Produce text/event-stream
// @Produce json-stream
// @Param filters body api.EventFilters false "Event filters"