Skip to content

Commit

Permalink
fix: add pasta openapi/features/auth e alterada a mensagem do erro 40…
Browse files Browse the repository at this point in the history
…1 para o login
  • Loading branch information
Lukasveiga committed Apr 30, 2024
1 parent bea177a commit b39a762
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: Incorrect username or password
description: Unable to authenticate user
content:
application/json:
schema:
Expand All @@ -9,4 +9,4 @@ content:
example: 401
message:
type: string
example: Incorrect username or password
example: Not authenticated
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ post:

responses:
'200':
description: User successfully authenticated
$ref: './components/login-response-body.yaml'
'400':
$ref: '../../shared/errors/validation-error.yaml'
'401':
$ref: '../../shared/errors/unauthorized-error.yaml'
$ref: './errors/unauthorized-error.yaml'
'500':
$ref: '../../shared/errors/server-error.yaml'
2 changes: 1 addition & 1 deletion openapi/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ paths:
/user/create:
$ref: './features/user/user-create-path.yaml'
/auth/login:
$ref: './features/user/user-login-path.yaml'
$ref: './features/auth/login-path.yaml'

0 comments on commit b39a762

Please sign in to comment.