Complete the User API endpoint