Skip to content

User Address Feature #12

@computebender

Description

@computebender

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions