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

View File

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

View File

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

View File

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

View File

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