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

Implement PUT /users/{id} Endpoint for updating a user by ID. #13

Closed
7 tasks done
Lapotor opened this issue Nov 1, 2023 · 0 comments · Fixed by #73
Closed
7 tasks done

Implement PUT /users/{id} Endpoint for updating a user by ID. #13

Lapotor opened this issue Nov 1, 2023 · 0 comments · Fixed by #73
Assignees
Milestone

Comments

@Lapotor
Copy link
Collaborator

Lapotor commented Nov 1, 2023

Description:

This task involves implementing the PUT /users/{id} endpoint in the Laravel project. This endpoint is responsible for updating user information based on the provided user ID.

Tasks:

  • Create a route in the routes file for handling the PUT request to update a user by ID.
  • Set up the corresponding controller method to handle the update logic.
  • Validate the incoming request data to ensure it meets the required format and constraints.
  • Retrieve the user with the specified ID from the database.
  • Apply the updates to the user's information.
  • Save the updated user information back to the database.
  • Return a JSON response indicating the success of the update operation.

Acceptance Criteria:

  • When a PUT request is made to /users/{id}, the user with the specified ID should be updated in the database.
  • The endpoint should handle validation errors gracefully and return appropriate error responses if the request data is invalid.
  • The response should provide clear feedback on the success or failure of the update operation.

Additional Information:

  • This implementation should adhere to the existing coding standards and best practices of the project.
  • Ensure that proper error handling and validation messages are in place to provide meaningful feedback to the client.
@Lapotor Lapotor added this to the v1.0.0 milestone Nov 1, 2023
@Lapotor Lapotor self-assigned this Nov 18, 2023
@Lapotor Lapotor changed the title Implement PUT /users/{id} Endpoint for updating a user by ID. Implement PATCH /users/{id} Endpoint for updating a user by ID. Dec 13, 2023
@Lapotor Lapotor changed the title Implement PATCH /users/{id} Endpoint for updating a user by ID. Implement PUT /users/{id} Endpoint for updating a user by ID. Dec 13, 2023
@Lapotor Lapotor linked a pull request Dec 13, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant