added api endpoint on server that returns the json data simulating persistence