export default class BarangService {

  constructor($http) {
    this._$http = $http;
  }

  getBarang(page) {
    return this._$http.get('/api/barang?page=' + page);
  }

  saveBarang(barang) {
    return this._$http.post('/api/barang', barang);
  }

  updateBarang(barang, idBarang) {
    return this._$http.put('/api/barang/' + idBarang, barang);
  }

  deleteBarang(idBarang) {
    return this._$http.delete('/api/barang/' + idBarang);
  }

}

BarangService.$inject = ['$http'];

@@ -100,16 +100,22 @@
 ang(page
+, size
 ) %7B%0A    
@@ -163,16 +163,34 @@
 ' + page
+ + '&size=' + size
 );%0A  %7D%0A%0A

update barang service