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

fix: use correct status code(201) when create new entry on database #155

Merged
merged 1 commit into from
May 20, 2024

Conversation

BertBR
Copy link
Contributor

@BertBR BertBR commented May 20, 2024

  • Adiciona o status code correto para criação de um novo recurso (partner)

** Verificar se o frontend utiliza validação do status ao chamar esse endpoint.

Source:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201

Copy link

@thiagodejesus thiagodejesus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, uma função que atualmente válida status de resposta no front é usada na chamada pra essa rota, é a handleCacheResponse e leva em consideração >=200, logo não será um problema.

@rodrigooler rodrigooler added enhancement New feature or request labels May 20, 2024
@rodrigooler rodrigooler merged commit 5c6ca79 into SOS-RS:develop May 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants