Skip to content

Commit

Permalink
chore (docs): Update docs for auth requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Owbird committed Mar 3, 2024
1 parent fb64b93 commit 5fc3559
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const docTemplate = `{
"paths": {
"/auth/login": {
"post": {
"description": "Authenticates the user the based on the credentials and returns a token which will be used to authorize requests",
"description": "Authenticates the user the based on the credentials and returns a token which will be used to authorize requests as a bearer token",
"consumes": [
"application/json"
],
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"paths": {
"/auth/login": {
"post": {
"description": "Authenticates the user the based on the credentials and returns a token which will be used to authorize requests",
"description": "Authenticates the user the based on the credentials and returns a token which will be used to authorize requests as a bearer token",
"consumes": [
"application/json"
],
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ paths:
consumes:
- application/json
description: Authenticates the user the based on the credentials and returns
a token which will be used to authorize requests
a token which will be used to authorize requests as a bearer token
parameters:
- description: Username
in: body
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/auth_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

// @Summary Authenticate a user
// @Description Authenticates the user the based on the credentials and returns a token which will be used to authorize requests
// @Description Authenticates the user the based on the credentials and returns a token which will be used to authorize requests as a bearer token
// @Tags Auth
// @Produce json
// @Accept json
Expand Down

0 comments on commit 5fc3559

Please sign in to comment.