The mayor shall appoint a city attorney, without necessity of periodic reappointment, upon approval by the city council, together with such assistant city attorney as may be authorized, to serve subject to the pleasure of the mayor and council and subjected to removal as provided below. The mayor and council shall provide for the payment of such attorney or attorneys for services rendered to the city. The city attorney shall be responsible for representing and defending the city in all litigation in which the city is a party, may be the prosecuting officer in the municipal court, shall attend the meetings of the city council as directed, shall advise the city council, mayor, city manager, and other officers and employees of the city concerning legal aspects of the city's affairs, and shall perform such other duties as may be required of him or her by virtue of his or her position as city attorney. The mayor may remove the city attorney or assistant city attorneys by a majority vote of the mayor and city council with all members present.