Skip to content
Snippets Groups Projects

update: add fallback to historic emails for authenticated mail lookups

Merged Martin Lowe requested to merge malowe/main/119 into main
6 files
+ 103
19
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -71,6 +71,16 @@ public interface PeopleAPI {
@Path("/{personId}/emails")
List<PeopleEmailsData> getEmails(@PathParam("personId") String personId);
/**
* Gets all PeopleEmailData entities tied to the given email address. Used to do reverse lookups for historical emails
*
* @param email The historical email for a potential user.
* @return A List of PeopleEmailData entities if they exist.
*/
@GET
@Path("/emails")
List<PeopleEmailsData> getEmailsByEmail(@QueryParam("email") String email);
/**
* Gets a People entity tied to the given personId.
*
Loading