-
Notifications
You must be signed in to change notification settings - Fork 0
193 backend criar area da saude #253
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
base: dev-profissional-da-saude
Are you sure you want to change the base?
193 backend criar area da saude #253
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No findById, atualmente retorna 204 No Content quando não encontra. Mas o service já lança EntidadeNaoEncontradaException, que provavelmente está mapeada para 404. Isso pode gerar inconsistência. Sugestão: deixar apenas a exceção do service, sem o .map(...).orElse(...).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O método update não é necessário, já que o save cobre create/update no JPA. Pode ser removido para simplificação.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update repete o mesmo que save. Se remover de AreaSaudeRepository, pode simplificar aqui também.
|
Preparing PR description... |
1 similar comment
|
Preparing PR description... |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨
|
|
Sugestões adotadas 2/3 do PR Code Suggestions |
Evidências do funcionamento dos endpoints
CREATE
http-post.mp4
READ(FindAll)
http-get.getAll.mp4
READ(FindOne)
http-get.mp4
UPDATE
http-put.mp4
DELETE
http-delete.mp4
CREATE VALIDAÇÃO UNICIDADE
http-post.valida.unicidade.mp4
CREATE VALIDAÇÃO FORMATO
http-post.valida.formato.mp4