chore: refreshed docs
This commit is contained in:
@@ -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
|
||||
|
||||
import (
|
||||
@@ -23,18 +35,6 @@ func main() {
|
||||
r := gin.Default()
|
||||
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"}
|
||||
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerfiles.Handler))
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ const docTemplate = `{
|
||||
"tags": [
|
||||
"Auth"
|
||||
],
|
||||
"summary": "Acquire tokens via login credentials or by providing 2FA code",
|
||||
"summary": "Acquire tokens via login credentials (and 2FA code if needed)",
|
||||
"responses": {}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
"tags": [
|
||||
"Auth"
|
||||
],
|
||||
"summary": "Acquire tokens via login credentials or by providing 2FA code",
|
||||
"summary": "Acquire tokens via login credentials (and 2FA code if needed)",
|
||||
"responses": {}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -32,7 +32,7 @@ paths:
|
||||
produces:
|
||||
- application/json
|
||||
responses: {}
|
||||
summary: Acquire tokens via login credentials or by providing 2FA code
|
||||
summary: Acquire tokens via login credentials (and 2FA code if needed)
|
||||
tags:
|
||||
- Auth
|
||||
/auth/passwordResetBegin:
|
||||
|
||||
Reference in New Issue
Block a user