crisbeto 87a679b210 build: import in-memory-web-api project (#37182)
Moves the `angular-in-memory-web-api` project into the main repository in order to make it easier to maintain and release.

PR Close #37182
2020-06-15 14:28:37 -07:00

22 lines
670 B
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Observable} from 'rxjs';
import {Hero} from './hero';
export abstract class HeroService {
heroesUrl = 'api/heroes'; // URL to web api
abstract getHeroes(): Observable<Hero[]>;
abstract getHero(id: number): Observable<Hero>;
abstract addHero(name: string): Observable<Hero>;
abstract deleteHero(hero: Hero|number): Observable<Hero>;
abstract searchHeroes(term: string): Observable<Hero[]>;
abstract updateHero(hero: Hero): Observable<Hero>;
}