Configurable REST endpoint model in Angular