rebuilt basic api for sites; starting with angular