Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

usiamo le specifiche di REST nel controller

Open
#173 0 comments 0 reactions 1 assignee View on GitHub

@paolini is already working on this.

Since Sep 9, 2023.

Assessment

This issue has not been assessed yet.

Description

enhancement

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Unipisa/caps

All issues in Unipisa/caps

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.