-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
atualizado o código de status dos delete controllers de Member, Product, Squad e User #29
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -32,6 +32,6 @@ public function __invoke(string $uuid) | |||||||||
|
||||||||||
return response()->json([ | ||||||||||
'Message' => 'Produto deletado com sucesso' | ||||||||||
], 200); | ||||||||||
], 204); | ||||||||||
Comment on lines
34
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Remover corpo da resposta com status 204 O código de status HTTP 204 (No Content) indica explicitamente que não deve haver corpo na resposta. Recomendo modificar para: - return response()->json([
- 'Message' => 'Produto deletado com sucesso'
- ], 204);
+ return response()->noContent(); 📝 Committable suggestion
Suggested change
|
||||||||||
} | ||||||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -35,6 +35,6 @@ public function __invoke(string $uuid) | |||||
|
||||||
$squad->delete(); | ||||||
|
||||||
return response()->json(['message' => 'Squad apagada com sucesso'], 200); | ||||||
return response()->json(['message' => 'Squad apagada com sucesso'], 204); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Remover corpo da resposta com status 204 O código de status HTTP 204 (No Content) indica explicitamente que não deve haver corpo na resposta. Recomendo modificar para: - return response()->json(['message' => 'Squad apagada com sucesso'], 204);
+ return response()->noContent(); 📝 Committable suggestion
Suggested change
|
||||||
} | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -39,6 +39,6 @@ public function __invoke(Request $request, string $uuid) | |||||||||
|
||||||||||
return response()->json([ | ||||||||||
'message' => 'Usuário deletado com sucesso!', | ||||||||||
], 200); | ||||||||||
], 204); | ||||||||||
Comment on lines
41
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Remover corpo da resposta com status 204 O código de status HTTP 204 (No Content) indica explicitamente que não deve haver corpo na resposta. Recomendo modificar para: - return response()->json([
- 'message' => 'Usuário deletado com sucesso!',
- ], 204);
+ return response()->noContent(); 📝 Committable suggestion
Suggested change
|
||||||||||
} | ||||||||||
} |
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.
🛠️ Refactor suggestion
Remover corpo da resposta com status 204
O código de status HTTP 204 (No Content) indica explicitamente que não deve haver corpo na resposta. Recomendo modificar para:
📝 Committable suggestion