Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Auth][Login] - Criar documentação openapi do endpoint de Login #15

Closed
alvarogfn opened this issue Apr 29, 2024 · 1 comment · Fixed by #45
Closed

[Auth][Login] - Criar documentação openapi do endpoint de Login #15

alvarogfn opened this issue Apr 29, 2024 · 1 comment · Fixed by #45
Assignees

Comments

@alvarogfn
Copy link
Contributor

alvarogfn commented Apr 29, 2024

Adicionar no swagger da API o endpoint referente ao Login de usuário

Requisição

  • Rota: /auth/login
  • Módulo: Authentication
  • Método HTTP: POST
  • Corpo da Requisição:
{
  "username": "johndoe123",
  "password": "001@Mypassword",
}

Resposta

  • Código HTTP: 200
  • Corpo da resposta:
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
  "issuedAt": "1714233677",
  "expireAt": "1714237277"
}

Referência:

@alvarogfn alvarogfn converted this from a draft issue Apr 29, 2024
@Lukasveiga
Copy link
Contributor

Lukasveiga commented Apr 29, 2024

Eu quero!!!

@kvnbg kvnbg assigned kvnbg and Lukasveiga and unassigned kvnbg Apr 29, 2024
@alvarogfn alvarogfn changed the title [Auth][Login] - Criar swagger do endpoint de Login [Auth][Login] - Criar documentação openapi do endpoint de Login Apr 29, 2024
@kvnbg kvnbg moved this from Todo to In Progress in Octopost Backend May 1, 2024
@kvnbg kvnbg moved this from In Progress to Done in Octopost Backend May 3, 2024
@kvnbg kvnbg added this to the [Auth] - Login milestone May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants