AngularJS: Creating a simple API Promise Factory

Many Angular applications require external API calls to Create, Read, Update, Delete (CRUD) data. Creating a reusable API factory simplifies the API call process by introducing a global CRUD object that can be used across all of your controllers. Promises are a core feature of AngularJS and uses the $http service to perform HTTP GETs, POSTs, PUTs and DELETEs on a API / URL.