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
|
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))
|
||||||
|
|
||||||
|
|||||||
@@ -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": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user