Updated legs api to use restfull fields