free-pmo
free-pmo copied to clipboard
[PROPOSAL] API Endpoints for Managing Projects
In this repo, we still have few endpoints. I think it is better if we have endpoints for managing projects.
GET api/v1/projects (project listing)
POST api/v1/projects (create new project)
GET api/v1/projects/{id} (single project)
PATCH api/v1/projects/{id} (update a project)
DELETE api/v1/projects/{id} (delete a project)
Need this API features created with feature tests in tests/Feature/Api/ApiManageProjectsTest
.
I think would be better to use PUT instead of PATCH, patch mean, you want to changes some record
So, PUT request is better choice for updating a record? even it just for some column, @ad3n?
The ref: https://williamdurand.fr/2014/02/14/please-do-not-patch-like-an-idiot/