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 POST /users Endpoint for creating a new user. #11

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

Implement POST /users Endpoint for creating a new user. #11

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 adding functionality to the Laravel project to handle the creation of a new user through the POST /users endpoint. The endpoint should be designed to receive a JSON payload containing user information, validate it, and persist the new user record in the database.

Tasks:

  • Create a route for the POST /users endpoint in the routes file.
  • Develop a controller method to handle the creation of a new user.
  • Validate the incoming JSON payload for required fields and data types.
  • Implement logic to securely hash and store the user's password.
  • Integrate error handling and return appropriate HTTP responses for success and failure cases.
  • Write unit tests to verify the functionality of the POST /users endpoint.
  • Verify that the endpoint adheres to any authentication or authorization requirements specified in the project.

Acceptance Criteria:

  • The POST /users endpoint should be functional and able to create a new user when provided with valid input.
  • Invalid input or missing fields should result in appropriate error responses.
  • Unit tests should pass, covering various scenarios including edge cases.
@Lapotor Lapotor added this to the v1.0.0 milestone Nov 1, 2023
@Lapotor Lapotor self-assigned this Nov 18, 2023
@Lapotor Lapotor linked a pull request Dec 13, 2023 that will close this issue
whyauthentic pushed a commit that referenced this issue Dec 13, 2023
Introduce the `UserController` to handle the following user-related
functionalities:

- Retrieve all users
- Display details of a specific user
- Create a new user
- Update existing user information
- Delete a user

---
**Needs**:
- #74

**Closes**:
- Close #10
- Close #11 
- Close #12
- Close #13
- Close #14

---------

Signed-off-by: Valentin Sickert <[email protected]>
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