Skip to content

Commit 56d2b81

Browse files
committed
Redoing the docs for playlist delete
1 parent 5d3ba53 commit 56d2b81

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

controllers/v1/creator/playlist.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ func (r *Repos) UpdatePlaylist(c echo.Context) error {
128128
return c.NoContent(http.StatusOK)
129129
}
130130

131-
// DeletePlaylist handles deleting series
132-
// @Summary Delete a series
133-
// @Description Delete a series
134-
// @ID delete-creator-series
135-
// @Tags creator-series
136-
// @Param seriesid path int true "Series ID"
131+
// DeletePlaylist handles deleting playlist
132+
// @Summary Delete a playlist
133+
// @Description Delete a playlist
134+
// @ID delete-creator-playlist
135+
// @Tags creator-playlist
136+
// @Param playlistid path int true "Series ID"
137137
// @Success 200
138-
// @Router /v1/internal/creator/series/{seriesid} [delete]
138+
// @Router /v1/internal/creator/playlist/{playlistid} [delete]
139139
func (r *Repos) DeletePlaylist(c echo.Context) error {
140140
playlistID, err := strconv.Atoi(c.Param("playlistid"))
141141
if err != nil {

swagger/docs.go

+22
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,28 @@ const docTemplate = `{
903903
}
904904
}
905905
}
906+
},
907+
"delete": {
908+
"description": "Delete a playlist",
909+
"tags": [
910+
"creator-playlist"
911+
],
912+
"summary": "Delete a playlist",
913+
"operationId": "delete-creator-playlist",
914+
"parameters": [
915+
{
916+
"type": "integer",
917+
"description": "Series ID",
918+
"name": "playlistid",
919+
"in": "path",
920+
"required": true
921+
}
922+
],
923+
"responses": {
924+
"200": {
925+
"description": "OK"
926+
}
927+
}
906928
}
907929
},
908930
"/v1/internal/creator/playout/channels": {

0 commit comments

Comments
 (0)