summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole3/frontend/src/app/api/netboot.service.ts
diff options
context:
space:
mode:
authorJuan Manuel Bardallo juanmanuel.bardallo@sic.uhu.es <juanmanuel.bardallo@sic.uhu.es>2019-06-07 10:14:09 +0200
committerJuan Manuel Bardallo juanmanuel.bardallo@sic.uhu.es <juanmanuel.bardallo@sic.uhu.es>2019-06-07 10:14:09 +0200
commit4ba1d5aefc6c437334fa031c58ecddca0f926a13 (patch)
tree09f41596574157e7c0288aac813bd71804e9cd84 /admin/WebConsole3/frontend/src/app/api/netboot.service.ts
parent09120935ac33f613c2f733d41af8213048e3bd27 (diff)
Creado gestion de plantillas netboot
Mejoras de estabilidad en componentes: - Asistente de particionado - Vista de un cliente - Vista unidad organizativa
Diffstat (limited to 'admin/WebConsole3/frontend/src/app/api/netboot.service.ts')
-rw-r--r--admin/WebConsole3/frontend/src/app/api/netboot.service.ts44
1 files changed, 24 insertions, 20 deletions
diff --git a/admin/WebConsole3/frontend/src/app/api/netboot.service.ts b/admin/WebConsole3/frontend/src/app/api/netboot.service.ts
index d4ad0c94..ab469ae1 100644
--- a/admin/WebConsole3/frontend/src/app/api/netboot.service.ts
+++ b/admin/WebConsole3/frontend/src/app/api/netboot.service.ts
@@ -1,20 +1,24 @@
-import { Injectable } from '@angular/core';
-import { HttpClient} from '@angular/common/http';
-
-import { environment } from '../../environments/environment';
-import { Netboot } from "../model/netboot";
-import { NetbootSerializer } from "../serializer/netboot.serializer";
-
-import {ResourceService} from "globunet-angular/core/providers/api/resource.service";
-
-
-@Injectable({
- providedIn: 'root'
-})
-export class NetbootService extends ResourceService<Netboot> {
-
- constructor(http: HttpClient){
- super(http, environment.API_URL,"netboots", new NetbootSerializer());
- }
-
-}
+import {Injectable} from '@angular/core';
+import {HttpClient} from '@angular/common/http';
+
+import {environment} from '../../environments/environment';
+import {Netboot} from '../model/netboot';
+import {NetbootSerializer} from '../serializer/netboot.serializer';
+
+import {ResourceService} from 'globunet-angular/core/providers/api/resource.service';
+import {Observable} from 'rxjs';
+
+
+@Injectable({
+ providedIn: 'root'
+})
+export class NetbootService extends ResourceService<Netboot> {
+
+ constructor(http: HttpClient) {
+ super(http, environment.API_URL, 'netboots', new NetbootSerializer());
+ }
+
+ updateFiles(assignedNetboots: {}): Observable<any> {
+ return this.httpClient.post(this.url + '/clients', JSON.stringify(assignedNetboots));
+ }
+}