Modified REST api

Modified the REST api to return the most recent data