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", "description": "Stream of event of whats happening in the core",
"consumes": [ "consumes": [
"text/event-stream", "application/json"
"application/x-json-stream"
], ],
"produces": [ "produces": [
"text/event-stream", "text/event-stream",

View File

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

View File

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

View File

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