Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PROPOSAL] API Endpoints for Managing Projects #44

Open
nafiesl opened this issue Jul 7, 2019 · 3 comments
Open

[PROPOSAL] API Endpoints for Managing Projects #44

nafiesl opened this issue Jul 7, 2019 · 3 comments

Comments

@nafiesl
Copy link
Owner

nafiesl commented Jul 7, 2019

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.

@ad3n
Copy link

ad3n commented Jul 8, 2019

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

@nafiesl
Copy link
Owner Author

nafiesl commented Jul 8, 2019

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

@ad3n
Copy link

ad3n commented Jul 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants