free-pmo icon indicating copy to clipboard operation
free-pmo copied to clipboard

[PROPOSAL] API Endpoints for Managing Projects

Open nafiesl opened this issue 5 years ago • 3 comments

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.

nafiesl avatar Jul 07 '19 08:07 nafiesl

I think would be better to use PUT instead of PATCH, patch mean, you want to changes some record

ad3n avatar Jul 08 '19 03:07 ad3n

So, PUT request is better choice for updating a record? even it just for some column, @ad3n?

nafiesl avatar Jul 08 '19 05:07 nafiesl

The ref: https://williamdurand.fr/2014/02/14/please-do-not-patch-like-an-idiot/

ad3n avatar Jul 08 '19 07:07 ad3n