swagger fixes

This commit is contained in:
2025-12-03 18:01:40 +01:00
parent d932410802
commit 85e6e4adfb
4 changed files with 11 additions and 7706 deletions

View File

@@ -24,6 +24,9 @@ identifier.sqlite
scn_send.sh scn_send.sh
swagger/swagger.json
swagger/swagger.yaml
############## ##############

View File

@@ -1,16 +1,17 @@
package handler package handler
import ( import (
"database/sql"
"errors"
"net/http"
"strings"
"blackforestbytes.com/simplecloudnotifier/api/apierr" "blackforestbytes.com/simplecloudnotifier/api/apierr"
"blackforestbytes.com/simplecloudnotifier/api/ginresp" "blackforestbytes.com/simplecloudnotifier/api/ginresp"
"blackforestbytes.com/simplecloudnotifier/logic" "blackforestbytes.com/simplecloudnotifier/logic"
"blackforestbytes.com/simplecloudnotifier/models" "blackforestbytes.com/simplecloudnotifier/models"
"database/sql"
"errors"
"git.blackforestbytes.com/BlackForestBytes/goext/ginext" "git.blackforestbytes.com/BlackForestBytes/goext/ginext"
"git.blackforestbytes.com/BlackForestBytes/goext/langext" "git.blackforestbytes.com/BlackForestBytes/goext/langext"
"net/http"
"strings"
) )
// ListUserSubscriptions swaggerdoc // ListUserSubscriptions swaggerdoc
@@ -39,8 +40,9 @@ import (
// @ID api-user-subscriptions-list // @ID api-user-subscriptions-list
// @Tags API-v2 // @Tags API-v2
// //
// @Param uid path string true "UserID" // @Param uid path string true "UserID"
// @Param selector query string true "Filter subscriptions (default: outgoing_all)" Enums(outgoing_all, outgoing_confirmed, outgoing_unconfirmed, incoming_all, incoming_confirmed, incoming_unconfirmed) //
// @Param query_data query handler.ListUserSubscriptions.query false " "
// //
// @Success 200 {object} handler.ListUserSubscriptions.response // @Success 200 {object} handler.ListUserSubscriptions.response
// @Failure 400 {object} ginresp.apiError "supplied values/parameters cannot be parsed / are invalid" // @Failure 400 {object} ginresp.apiError "supplied values/parameters cannot be parsed / are invalid"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff