The city attorney shall be an attorney at law who shall have practiced in the State of Georgia for at least five years. He shall be the chief legal adviser of and attorney for the city and all departments and offices thereof in matters relating to their official powers and duties. It shall be his duty to attend all meetings of the council; to give advice in writing, when so requested, to the council, the city manager or the director of any department; to prosecute or defend, as the case may be, all suits or cases to which the city may be a party; to prosecute for all offenses against the ordinances of the city and for such offenses against the laws of the state as may be required of him by the council; to prepare all contracts, bonds and other instruments in writing, in which the city is concerned, and to endorse on each his approval of the form and the correctness thereof; and to perform such other duties of a legal nature as the council may by ordinance require. In addition to the duties imposed upon him by this charter or required of him by ordinance or resolution of the council he shall perform any duties imposed upon the chief legal officers of municipalities by law.