Unipisa / Unipisa/caps

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.

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

  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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.