Remove deprecated API paths (#2639)

This commit is contained in:
qwerty287
2023-10-24 15:21:05 +02:00
committed by GitHub
parent c344cbb0fc
commit 5045f1e431
5 changed files with 70 additions and 57 deletions

View File

@@ -453,7 +453,7 @@ func PostPipeline(c *gin.Context) {
// DeletePipelineLogs
//
// @Summary Deletes log
// @Router /repos/{repo_id}/logs/{number} [post]
// @Router /repos/{repo_id}/logs/{number} [delete]
// @Produce plain
// @Success 204
// @Tags Pipeline logs

View File

@@ -34,10 +34,14 @@ import (
"github.com/woodpecker-ci/woodpecker/server/store"
)
// EventStreamSSE
//
// event source streaming for compatibility with quic and http2
//
// @Summary Event stream
// @Description event source streaming for compatibility with quic and http2
// @Router /stream/events [get]
// @Produce plain
// @Success 200
// @Tags Events
func EventStreamSSE(c *gin.Context) {
c.Header("Content-Type", "text/event-stream")
c.Header("Cache-Control", "no-cache")
@@ -118,10 +122,10 @@ func EventStreamSSE(c *gin.Context) {
}
}
// LogStream
// LogStreamSSE
//
// @Summary Log stream
// @Router /logs/{repo_id}/{pipeline}/{stepID} [get]
// @Router /stream/logs/{repo_id}/{pipeline}/{stepID} [get]
// @Produce plain
// @Success 200
// @Tags Pipeline logs