The city council shall appoint a city attorney, together with such assistant city attorneys as may be authorized, and 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 and other officers and employees of the city concerning legal aspects of the city´s affairs; shall administer the oath of office to each member of the city council, including the mayor; and shall draft or review every ordinance submitted to the city council and, as a matter of course, shall sign each such ordinance indicating such drafting or review; and shall perform such other duties as may be required of the city attorney by virtue of such person´s position as city attorney.