From 62af2424fa305001dc00c9cd9fdfb39c21376d7c Mon Sep 17 00:00:00 2001 From: Cubicroot Date: Fri, 1 Oct 2021 18:24:31 +0200 Subject: [PATCH] fix swag location --- .github/workflows/documentation.yml | 4 +--- internal/api/notification.go | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 7110434..28d41b9 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -20,12 +20,10 @@ jobs: ref: ${{ github.head_ref }} - name: Install swag run: go install github.com/swaggo/swag/cmd/swag - - name: debug - run: cd / && find * | grep swag - name: Install redoc run: sudo apt install npm && sudo npm install redoc - name: Build the api documentation - run: swag init --parseDependency=true -d . -g cmd/pushbits/main.go + run: /home/runner/go/bin/swag init --parseDependency=true -d . -g cmd/pushbits/main.go - name: Build static html run: npx redoc-cli bundle docs/swagger.yaml --output index.html # TODO copy index.html to new repo \ No newline at end of file diff --git a/internal/api/notification.go b/internal/api/notification.go index 2e01673..bca42de 100644 --- a/internal/api/notification.go +++ b/internal/api/notification.go @@ -74,7 +74,7 @@ func (h *NotificationHandler) CreateNotification(ctx *gin.Context) { // @Summary Delete a Notification // @Description Informs the channel that the notification is deleted // @Accept json,mpfd -// @Produce json +// @Produce json // @Param message_id path string true "ID of the message to delete" // @Param token query string true "Channels token, can also be provieded in the header" // @Success 200 ""