Modified REST api

Modified the REST api to return the most recent data
Merge pull request #1 from IzzyRahaman/master

Modified REST api