title: JHipster : when to use $http and when to use $resource
body: <p>I'm exploring how jhipster manipulates data. I have found  <code>$http.get()</code> in <code>getProfileInfo</code> method in <code>ProfileService</code> Service whitch interacting restful <code>api</code>  :</p>
  
  <pre><code>function getProfileInfo() {
              if (!angular.isDefined(dataPromise)) {
                  dataPromise = $http.get('api/profile-info').then(function(result) {
                      if (result.data.activeProfiles) {
                          var response = {};
                          response.activeProfiles = result.data.activeProfiles;
                          response.ribbonEnv = result.data.ribbonEnv;
                          response.inProduction = result.data.activeProfiles.indexOf("prod") !== -1;
                          response.swaggerDisabled = result.data.activeProfiles.indexOf("no-swagger") !== -1;
                          return response;
                      }
                  });
              }
              return dataPromise;
          }
  </code></pre>
  
  <p>and some where i have found <code>$resouce()</code> manipulating <code>GET</code> method. for example in <code>BankAccount</code> factory :</p>
  
  <pre><code>var resourceUrl =  'api/bank-accounts/:id';
  </code></pre>
  
  <p>I searched for when to use <code>$http</code> and when to use <code>$resource</code> and i found this :</p>
  
  <p><a href="https://stackoverflow.com/questions/13181406/angularjs-http-and-resource">AngularJS $http and $resource</a></p>
  
  <p>why <code>hipster</code> is not following <code>consistent</code> way of interacting API and manipulating data!!?</p>
  
  <p>so <code>jhipster</code>, when to use <code>$http</code> and when to use <code>$resource</code> in services??</p>