when anyone actually hits an armoured target in star wars e.g; the average stormtrooper, the armour serves no protection against any form of laser fire. this would lead me to believe the armour is used to protect against less advanced races who more likely wield swords and shields however in the return of the Jedi the stormtrooper's armour does nothing to protect against the Ewoks and their rocks.following my previous logic I assume that the armour is resistant against certain weapons/materials, however, I'm not versed in the star wars universe, so does armour serve any purpose in the star wars universe other than aesthetics?
I would say its more than aesthetic.
Their armor an equipment are suited to the function of the soldier.
Take for example the variations of the stormtrooper:
I will edit my answer if I find the video where a stormtropper reciebes 2 shots, being the first one absorved by the armor.
I think its from Ep 6, in the moon fight.
Leaving the stormtroopers aside, you can consider other tipes of armor, like a cortosis armor to disable lightsabers