API: Update swagger annotations #2132

This commit is contained in:
graciousgrey
2024-07-25 13:21:07 +02:00
parent ead5ecaf06
commit 0fba4199c4
4 changed files with 23 additions and 126 deletions

View File

@@ -24,10 +24,7 @@ import (
// @Tags Labels
// @Produce json
// @Success 200 {object} entity.Label
// @Failure 404 {object} i18n.Response
// @Failure 401 {object} i18n.Response
// @Failure 403 {object} i18n.Response
// @Failure 429 {object} i18n.Response
// @Failure 401,403,404,429 {object} i18n.Response
// @Param uid path string true "Label UID"
// @Param label body form.Label true "Label Name"
// @Router /api/v1/labels/{uid} [put]
@@ -72,10 +69,7 @@ func UpdateLabel(router *gin.RouterGroup) {
// @Id LikeLabel
// @Tags Labels
// @Produce json
// @Failure 404 {object} i18n.Response
// @Failure 401 {object} i18n.Response
// @Failure 403 {object} i18n.Response
// @Failure 429 {object} i18n.Response
// @Failure 401,403,404,429 {object} i18n.Response
// @Param uid path string true "Label UID"
// @Router /api/v1/labels/{uid}/like [post]
func LikeLabel(router *gin.RouterGroup) {
@@ -117,10 +111,7 @@ func LikeLabel(router *gin.RouterGroup) {
// @Id DislikeLabel
// @Tags Labels
// @Produce json
// @Failure 404 {object} i18n.Response
// @Failure 401 {object} i18n.Response
// @Failure 403 {object} i18n.Response
// @Failure 429 {object} i18n.Response
// @Failure 401,403,404,429 {object} i18n.Response
// @Param uid path string true "Label UID"
// @Router /api/v1/labels/{uid}/like [delete]
func DislikeLabel(router *gin.RouterGroup) {