Implemented new /profile/<username>/ endpoints in the RESTful server