usiamo le specifiche di REST nel controller
Open
@paolini is already working on this.
Since Sep 9, 2023.
enhancement
- Dominant language
- PHP
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
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.
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.
Assessment
This issue has not been assessed yet.