Added the REST api view for location table.