mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-23 23:55:02 +01:00
update swagger
This commit is contained in:
@@ -29,7 +29,7 @@ type CreateUserRequestBody struct {
|
||||
|
||||
// CreateUser godoc
|
||||
// @Summary Create an account
|
||||
// @Description Create a new account with a login and password. Requires Authorization header with admin token.
|
||||
// @Description Create a new account with a login and password.
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Tags Account
|
||||
|
||||
@@ -31,7 +31,7 @@ type UpdateUserRequestBody struct {
|
||||
|
||||
// UpdateUser godoc
|
||||
// @Summary Update an account
|
||||
// @Description Update an account with a new a login, password and activation status
|
||||
// @Description Update an account with a new a login, password and activation status. Requires Authorization header with admin token.
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Tags Account
|
||||
|
||||
@@ -71,7 +71,7 @@ const docTemplate = `{
|
||||
},
|
||||
"/v2/admin/users": {
|
||||
"put": {
|
||||
"description": "Update an account with a new a login, password and activation status",
|
||||
"description": "Update an account with a new a login, password and activation status. Requires Authorization header with admin token.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -495,7 +495,7 @@ const docTemplate = `{
|
||||
},
|
||||
"/v2/users": {
|
||||
"post": {
|
||||
"description": "Create a new account with a login and password",
|
||||
"description": "Create a new account with a login and password.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
},
|
||||
"/v2/admin/users": {
|
||||
"put": {
|
||||
"description": "Update an account with a new a login, password and activation status",
|
||||
"description": "Update an account with a new a login, password and activation status. Requires Authorization header with admin token.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -487,7 +487,7 @@
|
||||
},
|
||||
"/v2/users": {
|
||||
"post": {
|
||||
"description": "Create a new account with a login and password",
|
||||
"description": "Create a new account with a login and password.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
|
||||
@@ -267,7 +267,8 @@ paths:
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Update an account with a new a login, password and activation status
|
||||
description: Update an account with a new a login, password and activation status.
|
||||
Requires Authorization header with admin token.
|
||||
parameters:
|
||||
- description: Update User
|
||||
in: body
|
||||
@@ -534,7 +535,7 @@ paths:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Create a new account with a login and password
|
||||
description: Create a new account with a login and password.
|
||||
parameters:
|
||||
- description: Create User
|
||||
in: body
|
||||
|
||||
Reference in New Issue
Block a user