update swagger

This commit is contained in:
kiwiidb
2023-05-24 14:06:48 +02:00
parent 2344944504
commit aa6131c3cc
5 changed files with 9 additions and 8 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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"
],

View File

@@ -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"
],

View File

@@ -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