getResults(collegeId) { return this.http.get('http://gcDashboardService:9000/collegeinfo/' + collegeId).map(res => res.json()); }
getSingleTeacherF(id){ return this.http.get('http://localhost:3000/get-teacher/'+id) .map(res => res.json()); }
getSchedule() : Observable<ScheduleData[]> { return this.http.get('../railrunnerschedule.json').map(this.extractData).catch(this.handleError); }
getConferenceById(id: number): Observable<Conference> { return this.http.get(this.constants.conferenceApi + '/' + id, this.httpHelperService.getAuthRequestOptionsArg()) .map(this.extractConferenceData) .catch(this.handleConferenceError); }
/** * Returns an Observable for the HTTP GET request for the JSON resource. * @return {string[]} The Observable for the HTTP request. */ get(): Observable<string[]> { return this.http.get(`${Config.API}/api/name-list/static`) .map((res: Response) => res.json()) .catch(this.handleError); }
getAll(): void { this.http.get(this.configuration.config.rootUrl + "api/persons").subscribe( (result: Response) => { this.contacts.next(result.json()); }, this.handleError); }
searchBooks(queryTitle: string): Observable<BookModel[]> { return this.http.get(`${this.API_PATH}?q=${queryTitle}`) .map(res => res.json().items); }
//Liefert alle Gruppen in denen der User Mitglied ist getGroupsOfUser(userId:string){ return this.http.get(Path[0]+"/getgroupsofuser?uid=" +userId) .map(res => res.json()); }
//Liefert Gruppe mit spezieller Id getSpecificGroup(groupId:string) { return this.http.get(Path[0]+"/getspecificgroup?gid=" +groupId) .map(res => res.json()); }
resolveFn: (http: Http) => http.get('/data/bazData.json').map(res => res.json()).toPromise()