usiamo le specifiche di REST nel controller
@paolini is already working on this.
Since Sep 9, 2023.
Assessment
This issue has not been assessed yet.
Description
Stavo guardando il codice di router.js qui: https://github.com/Unipisa/caps/blob/caps-api/api/router.js
Mi pare che sarebbe meglio utilizzare il metodo DELETE (router.delete) per cancellare gli oggetti, invece che mettere delete nel path con il metodo POST.
Analogamente userei il metodo PATCH invece che POST per fare l'update. Il metodo POST dovrebbe servire solamente ad inserire un oggetto nuovo.
Per coerenza rinominerei i metodi dei controller: insert->post, update->patch.
- Dominant language
- PHP
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Unipisa/caps
-
Cannot access Open
Difficulty 4/5 3-5 days Newbie friendliness 15/100
-
creare dashboard Open
-
edit degrees Open
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
hector-jewell/food-delivery-system-for-restaurant-using-php#1311 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Sylius/SyliusGridBundle#501 ·