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