The city elected its first mayor in 1229 , and a parliament was held for the first time in 1297 .
Parliament wasn 't held until later on because at first the city had no need for a full governing body .