fix swag location

This commit is contained in:
Cubicroot 2021-10-01 18:24:31 +02:00
parent 26187a8adf
commit 62af2424fa
2 changed files with 2 additions and 4 deletions

View file

@ -20,12 +20,10 @@ jobs:
ref: ${{ github.head_ref }} ref: ${{ github.head_ref }}
- name: Install swag - name: Install swag
run: go install github.com/swaggo/swag/cmd/swag run: go install github.com/swaggo/swag/cmd/swag
- name: debug
run: cd / && find * | grep swag
- name: Install redoc - name: Install redoc
run: sudo apt install npm && sudo npm install redoc run: sudo apt install npm && sudo npm install redoc
- name: Build the api documentation - 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 - name: Build static html
run: npx redoc-cli bundle docs/swagger.yaml --output index.html run: npx redoc-cli bundle docs/swagger.yaml --output index.html
# TODO copy index.html to new repo # TODO copy index.html to new repo

View file

@ -74,7 +74,7 @@ func (h *NotificationHandler) CreateNotification(ctx *gin.Context) {
// @Summary Delete a Notification // @Summary Delete a Notification
// @Description Informs the channel that the notification is deleted // @Description Informs the channel that the notification is deleted
// @Accept json,mpfd // @Accept json,mpfd
// @Produce json // @Produce json
// @Param message_id path string true "ID of the message to delete" // @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" // @Param token query string true "Channels token, can also be provieded in the header"
// @Success 200 "" // @Success 200 ""