diff --git a/docs/docs.go b/docs/docs.go index 53c4e50f..75e9671c 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -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", diff --git a/docs/swagger.json b/docs/swagger.json index 5e1a887e..de68d59c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -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", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 18959ee0..38fe6224 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -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: diff --git a/http/handler/api/events.go b/http/handler/api/events.go index 985210a1..f758f63e 100644 --- a/http/handler/api/events.go +++ b/http/handler/api/events.go @@ -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"