defining data points in php api for angular services or factories to use