I have REST API which takes the username as a path parameter like this - app/users/{username}. As per the business requirement, the username can be an email address as well.