@Injectable()
export class CatalogService {
-
+
constructor(private http: HttpClient) {
}
return this.http.get('api/xappmgr/xapps');
}
- deployXapp(name) {
- console.log(name);
- return this.http.post('api/xappmgr/xapps',
- {
- "xAppName": "string",
- "xappName": name
- });
- }
-
+ deployXapp(name) {
+ return this.http.post('api/xappmgr/xapps',
+ {
+ "xAppName": name
+ }
+ , { observe: 'response' });
+ }
+
}