The mayor shall appoint, with the advice and consent of the city council, 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.