chore: refreshed docs

This commit is contained in:
2025-06-18 21:31:39 +03:00
parent c787fa929b
commit fed517f905
4 changed files with 15 additions and 15 deletions

View File

@@ -1,3 +1,15 @@
// @title Easywish client API
// @version 1.0
// @description Easy and feature-rich wishlist.
// @license.name GPL 3.0
// @BasePath /api/
// @Schemes http
// @securityDefinitions.apikey JWT
// @in header
// @name Authorization
package main package main
import ( import (
@@ -23,18 +35,6 @@ func main() {
r := gin.Default() r := gin.Default()
r = routes.SetupRoutes(r) r = routes.SetupRoutes(r)
// @title Easywish client API
// @version 1.0
// @description Easy and feature-rich wishlist.
// @license.name GPL 3.0
// @BasePath /api/
// @Schemes http
// @securityDefinitions.apikey JWT
// @in header
// @name Authorization
docs.SwaggerInfo.Schemes = []string{"http"} docs.SwaggerInfo.Schemes = []string{"http"}
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerfiles.Handler)) r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerfiles.Handler))

View File

@@ -49,7 +49,7 @@ const docTemplate = `{
"tags": [ "tags": [
"Auth" "Auth"
], ],
"summary": "Acquire tokens via login credentials or by providing 2FA code", "summary": "Acquire tokens via login credentials (and 2FA code if needed)",
"responses": {} "responses": {}
} }
}, },

View File

@@ -45,7 +45,7 @@
"tags": [ "tags": [
"Auth" "Auth"
], ],
"summary": "Acquire tokens via login credentials or by providing 2FA code", "summary": "Acquire tokens via login credentials (and 2FA code if needed)",
"responses": {} "responses": {}
} }
}, },

View File

@@ -32,7 +32,7 @@ paths:
produces: produces:
- application/json - application/json
responses: {} responses: {}
summary: Acquire tokens via login credentials or by providing 2FA code summary: Acquire tokens via login credentials (and 2FA code if needed)
tags: tags:
- Auth - Auth
/auth/passwordResetBegin: /auth/passwordResetBegin: