Implementing API on /profile/:id