mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +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",
|
"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",
|
||||||
|
@@ -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",
|
||||||
|
@@ -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:
|
||||||
|
@@ -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"
|
||||||
|
Reference in New Issue
Block a user