How to format username in Show User REST Endpoint reqeust

Hi all,

Does anyone know how to get user profile by username?

Here is what I found:

Does anyone have solution for the 3rd scenario?

Best Regards,

Charles