+ /** Get the NSD Content List @public */
+ public getContent(URL: string): void {
+ this.isLoadingResults = true;
+ const httpOptions: GETAPIURLHEADER = {
+ headers: this.headers,
+ responseType: 'text'
+ };
+ this.restService.getResource(URL, httpOptions).subscribe((content: {}[]): void => {
+ const getJson: string[] = jsyaml.load(content.toString(), { json: true });
+ this.contents = getJson;
+ this.isLoadingResults = false;
+ }, (error: ERRORDATA): void => {
+ this.restService.handleError(error, 'get');
+ this.isLoadingResults = false;
+ });
+ }