import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';

@Injectable()
export class FormService {
	private phenotypesUrl = 'http://private-de10f-seqpipe.apiary-mock.com/phenotypes';

	constructor (private http: Http) {}

	getPhenotypes(){
		return this.http.get(this.phenotypesUrl).map(response => response.json());
	}

	getPresentInChild(){
		return this.http.get('http://localhost:4400/app/services/present-in-child.json').map(response => response.json());
	}

	getPresentInParent(){
		return this.http.get('http://localhost:4400/app/services/present-in-parent.json').map(response => response.json());
	}

	getEffectTypes(){
		return this.http.get('http://localhost:4400/app/services/effect-types.json').map(response => response.json());
	}
}
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';

@Injectable()
export class FormService {
	private phenotypesUrl = 'http://private-de10f-seqpipe.apiary-mock.com/phenotypes';

	constructor (private http: Http) {}

	getPhenotypes(){
		return this.http.get(this.phenotypesUrl).map(response => response.json());
	}

	getPresentInChild(){
		return this.http.get('http://localhost:4200/app/services/present-in-child.json').map(response => response.json());
	}

	getPresentInParent(){
		return this.http.get('http://localhost:4200/app/services/present-in-parent.json').map(response => response.json());
	}

	getEffectTypes(){
		return this.http.get('http://localhost:4200/app/services/effect-types.json').map(response => response.json());
	}
}
Fix in the request urls.
Fix in the request urls.
