Implement the GET /api/v1/users/{userId}/listings endpoint to return all listings created by the given user.
Requires implementing the service and repository layer logic for fetching both accommodation and seeking listings by the author_email. The user's email will need to be fetched from the UserRepository.
Each listing in the response should be associated with a listingType enum.
Implement the
GET /api/v1/users/{userId}/listings
endpoint to return all listings created by the given user.Requires implementing the service and repository layer logic for fetching both accommodation and seeking listings by the
author_email
. The user's email will need to be fetched from theUserRepository
.Each listing in the response should be associated with a
listingType
enum.