diff --git a/docs/docs.go b/docs/docs.go index c44762d7..672b5d20 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -292,9 +292,9 @@ const docTemplate = `{ "ApiKeyAuth": [] } ], - "description": "Reload the currently active configuration. This will trigger a restart of the Restreamer.", + "description": "Reload the currently active configuration. This will trigger a restart of the Core.", "produces": [ - "text/plain" + "application/json" ], "tags": [ "v16.7.2" diff --git a/docs/swagger.json b/docs/swagger.json index 966e1e49..2b32d525 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -284,9 +284,9 @@ "ApiKeyAuth": [] } ], - "description": "Reload the currently active configuration. This will trigger a restart of the Restreamer.", + "description": "Reload the currently active configuration. This will trigger a restart of the Core.", "produces": [ - "text/plain" + "application/json" ], "tags": [ "v16.7.2" diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 5923d296..daabe182 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -2077,10 +2077,10 @@ paths: /api/v3/config/reload: get: description: Reload the currently active configuration. This will trigger a - restart of the Restreamer. + restart of the Core. operationId: config-3-reload produces: - - text/plain + - application/json responses: "200": description: OK diff --git a/http/handler/api/config.go b/http/handler/api/config.go index 5e084e0b..cde44f79 100644 --- a/http/handler/api/config.go +++ b/http/handler/api/config.go @@ -157,15 +157,15 @@ func (p *ConfigHandler) Set(c echo.Context) error { // Reload will reload the currently active configuration // @Summary Reload the currently active configuration -// @Description Reload the currently active configuration. This will trigger a restart of the Restreamer. +// @Description Reload the currently active configuration. This will trigger a restart of the Core. // @Tags v16.7.2 // @ID config-3-reload -// @Produce plain -// @Success 200 {string} string "OK" +// @Produce json +// @Success 200 {string} string // @Security ApiKeyAuth // @Router /api/v3/config/reload [get] func (p *ConfigHandler) Reload(c echo.Context) error { p.store.Reload() - return c.String(http.StatusOK, "OK") + return c.JSON(http.StatusOK, "OK") }