mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 07:57:13 +08:00
Fix swagger documentation for /api/v3/events
This commit is contained in:
@@ -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",
|
||||
|
@@ -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",
|
||||
|
@@ -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:
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user