blob: aaf01625d2c022cad13ebb0acc55e47629825e60 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { RestAPI } from './rest-api';
@Injectable({
providedIn: 'root'
})
export class ApiService {
apis: RestAPI[] = [
{name: 'Rest API 1', desc: 'What it does', link: '#'},
{name: 'Rest API 1', desc: 'What it does', link: '#'},
{name: 'Rest API 1', desc: 'What it does', link: '#'}
];
constructor() { }
getAPIs(): Observable<RestAPI[]> {
return of(this.apis);
}
}
|