Updating server views to accept REST calls for data
Returns JSON