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());
 }
Example #10
0
 resolveFn: (http: Http) =>
   http.get('/data/bazData.json').map(res => res.json()).toPromise()
 //Sucht Gruppe ob sie schon existiert bei Neuerstellung & gibt ID ggf. wenn nach Gruppen gesucht wird
 searchGroupByName(name:string){
   return this.http.get(Path[0]+"/searchgroupbyname?name=" +name)
   .map(res => res.json());
 }
	getJSONAPI(url:string):Observable<{}> {
		return this.http.get(url)
			.map(this.extractData)
			.catch(this.handleError);
	}
Example #13
0
 head(url:string, options?:RequestOptionsArgs):Observable<Response> {
   return this.http.head(url, mergeAuthToken(options));
 }
Example #14
0
 patch(url:string, body:any, options?:RequestOptionsArgs):Observable<Response> {
   return this.http.patch(url, body, mergeAuthToken(options));
 }
Example #15
0
 getUsers() {
   this.http.get('https://localhost:5001/api/users').subscribe(response => {
     this.users = response.json();
   });
 }
 //Prüft, ob User Admin der Gruppe ist oder nicht
 userIsAdmin(groupId:string,userId:string) {
   return this.http.get(Path[0]+"/userisadmin?gid=" +groupId+"&uid="+userId)
   .map(res => res.json());
 }
 delete(personId: number): void {
     this.http.delete(this.configuration.config.rootUrl + "api/persons/" + personId)
         .subscribe((result: Response) => {
             this.deletedPerson.next(personId);
         }, this.handleError);
 }
 getCustomers_RxObservable() {
   return this._http.get(URL_CUSTOMER)
     .map((response:Response)=>response.json())
     .catch(this._handleError);
 }
 getOne(personTypeId: number): void {
     this.http.get(this.configuration.config.rootUrl + "api/persons/" + personTypeId)
         .subscribe((result: Response) => {
             this.contact.next(result.json());
         }, this.handleError);
 }
 addItem(item) {
   const headers = new Headers();
   headers.append('Content-Type', 'application/json');
   return this.http.post('http://192.168.43.70:7000/api/menuitem/add', item, { headers: headers }).pipe(map(res => res.json()));
 }
	retrieveBook(volumeId: string): Observable<BookModel> {
		return this.http.get(`${this.API_PATH}/${volumeId}`)
			.map(res => res.json());
	}
  getSingleTeacherF(id){
    return this.http.get('http://localhost:3000/get-teacher/'+id)
    .map(response => response.json());
    console.log(Response);

  }
 private loadConferences(): Observable<Conference[]> {
     return this.http.get(this.constants.conferenceApi, this.httpHelperService.getAuthRequestOptionsArg())
         .map(this.extractConferenceListData)
         .catch(this.handleError);
 }
 save(newPassword: string): Observable<any> {
     return this.http.post('uaa/api/account/change_password', newPassword);
 }
 search(term: string) {
     return this.http
                 .get(`app/heroes/?name=${term}+`)
                 .map((r: Response) => r.json().data as Hero[]);
 }
 getData(city):Observable<any> {
     var url = 'http://api.openweathermap.org/data/2.5/weather?q=' + city + '&APPID=bc9a99b72eb27eb6fcc062633cb84188';
     return this.http.get(url)
         .map(this.extractData)
         .catch(this.handleError);
 }
  deleteTeachersF(id){
    return this.http.delete('http://localhost:3000/delete-teacher/'+id)
      .map(response => response.json());

  }
Example #28
0
 fetchIdeas() {
   return this.http
     .get('/api/ideas')
     .map(response => response.json());
 }
 getTeachersF()
 {
   return this.http.get('http://localhost:3000/get-teachers')
     .map(response => response.json());
 }
 getInitData() {
   return this.http.get('http://gcDashboardService:9000/collegeinfo').map(res => res.json());
 }