The commission shall appoint a city attorney, together with such assistant city attorneys as may be deemed necessary, who shall serve at will for an indefinite term. The city attorney shall be responsible for representing and defending the city in all litigation in which the city is a party, shall attend the meetings of the commission as directed and shall advise the commission and other officers and employees of the city concerning legal aspects of the city's affairs.