Skip to content
Snippets Groups Projects
Verified Commit b413fdb8 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Omit content with 204 status code

parent 17e06830
No related branches found
No related tags found
No related merge requests found
...@@ -230,7 +230,7 @@ func (api *API) PatchFileOfShow(c *gin.Context) { ...@@ -230,7 +230,7 @@ func (api *API) PatchFileOfShow(c *gin.Context) {
// @Description Removes a file. // @Description Removes a file.
// @Param name path string true "Name of the show" // @Param name path string true "Name of the show"
// @Param id path int true "ID of the file" // @Param id path int true "ID of the file"
// @Success 204 {object} nil // @Success 204
// @Failure 400 {object} ErrorResponse // @Failure 400 {object} ErrorResponse
// @Failure 403 {object} ErrorResponse // @Failure 403 {object} ErrorResponse
// @Failure 404 {object} ErrorResponse // @Failure 404 {object} ErrorResponse
......
...@@ -110,7 +110,7 @@ func (api *API) ReadImportOfFile(c *gin.Context) { ...@@ -110,7 +110,7 @@ func (api *API) ReadImportOfFile(c *gin.Context) {
// @Description Cancels import of file. // @Description Cancels import of file.
// @Param name path string true "Name of the show" // @Param name path string true "Name of the show"
// @Param id path int true "ID of the file" // @Param id path int true "ID of the file"
// @Success 204 {object} nil // @Success 204
// @Failure 400 {object} ErrorResponse // @Failure 400 {object} ErrorResponse
// @Failure 403 {object} ErrorResponse // @Failure 403 {object} ErrorResponse
// @Failure 404 {object} ErrorResponse "No job for this file" // @Failure 404 {object} ErrorResponse "No job for this file"
......
...@@ -461,7 +461,7 @@ func (api *API) UploadFileFlowJS(c *gin.Context) { ...@@ -461,7 +461,7 @@ func (api *API) UploadFileFlowJS(c *gin.Context) {
// @Param flowIdentifier query string true "A unique identifier for the uploaded file" // @Param flowIdentifier query string true "A unique identifier for the uploaded file"
// TODO: document all flow.js params // TODO: document all flow.js params
// @Success 200 {object} nil // @Success 200 {object} nil
// @Success 204 {object} nil // @Success 204
// @Failure 400 {object} ErrorResponse // @Failure 400 {object} ErrorResponse
// @Failure 403 {object} ErrorResponse // @Failure 403 {object} ErrorResponse
// @Failure 409 {object} ErrorResponse // @Failure 409 {object} ErrorResponse
......
...@@ -160,7 +160,7 @@ func (api *API) UpdatePlaylistOfShow(c *gin.Context) { ...@@ -160,7 +160,7 @@ func (api *API) UpdatePlaylistOfShow(c *gin.Context) {
// @Description Deletes a playlist of a show. // @Description Deletes a playlist of a show.
// @Param name path string true "Name of the show" // @Param name path string true "Name of the show"
// @Param id path int true "ID of the playlist" // @Param id path int true "ID of the playlist"
// @Success 204 {object} nil // @Success 204
// @Failure 400 {object} ErrorResponse // @Failure 400 {object} ErrorResponse
// @Failure 403 {object} ErrorResponse // @Failure 403 {object} ErrorResponse
// @Failure 404 {object} ErrorResponse // @Failure 404 {object} ErrorResponse
......
...@@ -125,7 +125,7 @@ func (api *API) CreateShow(c *gin.Context) { ...@@ -125,7 +125,7 @@ func (api *API) CreateShow(c *gin.Context) {
// @Description Deletes a show // @Description Deletes a show
// @Produce json // @Produce json
// @Param name path string true "Name of the show to be deleted" // @Param name path string true "Name of the show to be deleted"
// @Success 204 {object} nil // @Success 204
// @Failure 403 {object} ErrorResponse // @Failure 403 {object} ErrorResponse
// @Failure 500 {object} ErrorResponse // @Failure 500 {object} ErrorResponse
// @Router /api/v1/shows/{name} [delete] // @Router /api/v1/shows/{name} [delete]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment