-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Update the User controller to allow users to create, get, update and delete addresses from their profile. The endpoints to be implemented are:
- GET /api/users/{userId}/addresses: Retrieves all addresses for a specific user with the given ID.
- POST /api/users/{userId}/addresses: Adds an address for a specific user with the given ID.
- GET /api/users/{userId}/addresses/{addressId}: Retrieves an address for a specific user with the given ID and address ID.
- PUT /api/users/{userId}/addresses/{addressId}: Updates an address for a specific user with the given ID and address ID.
- DELETE /api/users/{userId}/addresses/{addressId}: Deletes an address for a specific user with the given ID and address ID.
Tasks
- Create Address Entity
- Create Address Service
- Update the User entity to have a list of addresses
- Update User Controller
- Update user thymeleaf template to include addresses of each user.
- Create/update tests to test Entity, Service, and Controller
- Update Open API doc with any modifications
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Done