DEV: Document get user by external_id api endpoint (PR #11717)

Added GET user by external_id to the api docs. Fixed /users/{username} docs to be /u/{username}

Extracted out common user response into a shared helper.

GitHub