Ejemplo n.º 1
0
 /*
 * EMPLEADOS
 */
 getEmployees() {
   return this.http.get(this.api + 'employees', { observe: 'response' });
 }
Ejemplo n.º 2
0
 /**
  * Get an observable that fetches the `NavigationResponse` from the server.
  * We create an observable by calling `http.get` but then publish it to share the result
  * among multiple subscribers, without triggering new requests.
  * We use `publishLast` because once the http request is complete the request observable completes.
  * If you use `publish` here then the completed request observable will cause the subscribed observables to complete too.
  * We `connect` to the published observable to trigger the request immediately.
  * We could use `.refCount` here but then if the subscribers went from 1 -> 0 -> 1 then you would get
  * another request to the server.
  * We are not storing the subscription from connecting as we do not expect this service to be destroyed.
  */
 private fetchNavigationInfo(): Observable<NavigationResponse> {
   const navigationInfo = this.http.get<NavigationResponse>(navigationPath)
     .pipe(publishLast());
   (navigationInfo as ConnectableObservable<NavigationResponse>).connect();
   return navigationInfo;
 }
 getScript(scriptId: number) {
   return this.http.get<Script>(`${InteractiveExplorerConfig.API_URL}/scripts/${scriptId}`);
 }
Ejemplo n.º 4
0
 checkUser(): Observable<UserInfo> {
     return this.http.get<UserInfoResponse>('/raw/auth/check?format=json').pipe(
         map(resp => AuthService.statusCheck(resp)));
 }
Ejemplo n.º 5
0
    public getMyLikes (): Observable<IPagedResult<ITrack>> {
        const url = `${this._audioZoneService.getCurrentZoneSnapshot().path}/api/likes/mylikes?start=0&take=50`;

        return this._http.get<IPagedResult<ITrack>>(url);
    }
Ejemplo n.º 6
0
  getMobilePlanById(id: number): Observable<MobilePlan> {

    return this.service.get<MobilePlan>('http://localhost:3000/mobilePlans/' + id);
   }
 findAll(page: number, count: number) {
   return this.http.get(`${LUF_API}/escalas/${page}/${count}`);
 }
Ejemplo n.º 8
0
 runReportTests():Observable<any>{
   // return this.http.get("http://localhost:3000/Project2/Servlet/ProtractorTests"); // local
   return this.http.get("http://54.174.104.191:8080/Project2/Servlet/ReportTests");
 }
Ejemplo n.º 9
0
 runManageBatch():Observable<any>{
   return this.http.get("http://54.174.104.191:8080/Project2/Servlet/ManageBatch");
 }
Ejemplo n.º 10
0
 getSomething():Observable<any>{
   return this.http.get("http://54.174.104.191:8080/Project2/Servlet/getSomething");
 }
Ejemplo n.º 11
0
 // This is what you need to do to get your tests to run from angular
 // dont forget to add to app.component.ts
 runQualityAuditTests():Observable<any>{
   return this.http.get("http://54.174.104.191:8080/Project2/Servlet/QualityAuditTests");
 }
Ejemplo n.º 12
0
 verCalificacionUsuarioRestaurante(restaurante_id: String) {
   return this.http.get<any>(`/api/calificacion-usuario/${restaurante_id}`);
 }
Ejemplo n.º 13
0
 getAll(): Observable<City[]>{      
   return this.http.get<City[]>(this.actionUrl, { headers: this.authHeaders });  
 }
Ejemplo n.º 14
0
 get(): Observable<HttpResponse<Account>> {
     return this.http.get<Account>('api/account', { observe: 'response' });
 }
Ejemplo n.º 15
0
 cities.forEach((city) => {
   citiesSubject.next(this.http.get(
     `https://api.openweathermap.org/data/2.5/weather?q=${city}&units=${metric}&APPID=952d6b1a52fe15a7b901720074680562`));
 });
Ejemplo n.º 16
0
 runNavBarTests():Observable<any>{
   return this.http.get("http://54.174.104.191:8080/Project2/Servlet/NavBarTests");
 }
Ejemplo n.º 17
0
 getAllMobilePlans(): Observable<MobilePlan[]> {
   return this.service.get<MobilePlan[]>('http://localhost:3000/mobilePlans');
 }
Ejemplo n.º 18
0
 runAssessBatchTests():Observable<any>{
   return this.http.get("http://54.174.104.191:8080/Project2/Servlet/AssessBatchTests");
 }
Ejemplo n.º 19
0
  getAllDTHPlans(): Observable<DthPlan[]> {
   return this.service.get<DthPlan[]>('http://localhost:3000/dthPlans');
 }
Ejemplo n.º 20
0
 getConfigData() {
   return this.http.get('api/cluster_conf/');
 }
 findByCodigo(codigo: number) {
   return this.http.get(`${LUF_API}/escalas/${codigo}`);
 }
Ejemplo n.º 22
0
 get(configOption: string) {
   return this.http.get(`api/cluster_conf/${configOption}`);
 }
Ejemplo n.º 23
0
 public retrieve(offset: number = 0, length: number = 20): Observable<Product[]> {
   return this.httpClient.get<Product[]>("/api/products?offset=" + offset + "&length=" + length, {
     headers: { "Authorization": "Bearer " + localStorage.getItem("access_token") }
   });
 }
Ejemplo n.º 24
0
 query(): Observable<PhoneData[]> {
   return this.http.get<PhoneData[]>(`phones/phones.json`);
 }
Ejemplo n.º 25
0
 public getProfile(): Observable<Dto.ProfileNterface> {
   return this.http.get<Dto.ProfileNterface>('theater.json');
 }
Ejemplo n.º 26
0
 get(id: string): Observable<PhoneData> {
   return this.http.get<PhoneData>(`phones/${id}.json`);
 }
 getScripts() {
   return this.http.get<Script[]>(InteractiveExplorerConfig.API_URL + '/scripts');
 }
 public getServerStatus(): Observable<IMediaServerStatus> {
     return this.http.get<IMediaServerStatus>(`${this.url}`, {headers: this.headers});
 }
Ejemplo n.º 29
0
 getLetter(id) {
   return this._http.get(`https://test-api.javascript.ru/v1/ssumatokhin/letters/${id}`);
 }
Ejemplo n.º 30
0
 /*
 * PRODUCTOS
 */
 getProducts() {
   return this.http.get(this.api + 'products', { observe: 'response' });
 }