The mayor shall appoint a city attorney, together with such assistant city attorneys as may be authorized by ordinance. The city attorney shall be responsible for representing and defending the city in all litigation in which the city is a party, shall be the prosecuting officer in the recorder's court unless a prosecutor is separately appointed pursuant to Section 3.06 of the charter, and shall advise the council, mayor and other officers and employees of the city concerning legal aspects of the city's affairs. The city council shall appoint a city attorney, together with such assistant city attorneys as may be authorized, by ordinance. The city attorney shall be responsible for representing and defending the city in all litigation in which the city is a party, shall be the prosecuting officer in the recorder's court unless a prosecutor is separately appointed pursuant to Section 3.06 of the charter, and shall advise the council, mayor and other officers and employees of the city concerning legal aspects of the city's affairs.