title: How can we change angular-in-memory-web base url
body: <p>I am new to angular and I was referring standard angular material present on angular site for the tutorial and I come upon part &quot;Get Data from server&quot;. In this, I have created my in-memory dataservice like this.</p>
  <pre class="lang-js prettyprint-override"><code>import { Injectable } from '@angular/core';
  import { InMemoryDbService } from 'angular-in-memory-web-api';
  import { Hero } from './hero';
      
  @Injectable({
    providedIn: 'root',
  })
  export class InMemoryDataService implements InMemoryDbService {
    createDb() {
      const data = [
        { id: 11, name: 'Dr Nice' },
        { id: 12, name: 'Narco' },
        { id: 13, name: 'Bombasto' },
        { id: 14, name: 'Celeritas' },
        { id: 15, name: 'Magneta' },
        { id: 16, name: 'RubberMan' },
        { id: 17, name: 'Dynama' },
        { id: 18, name: 'Dr IQ' },
        { id: 19, name: 'Magma' },
        { id: 20, name: 'Tornado' }
      ];
  
      return {data};
    }
  }
  </code></pre>
  <p>And call it in my service class</p>
  <pre class="lang-js prettyprint-override"><code>import { Injectable } from '@angular/core';
  import {Hero} from './hero';
  import {HEROES} from './mock-heroes';
  import { Observable, of } from 'rxjs';
  import {MessageService} from './message.service';
  import { HttpClient, HttpHeaders } from '@angular/common/http';
  import { catchError, map, tap } from 'rxjs/operators';
          
  @Injectable({
    providedIn: 'root'
  })
  export class HeroService {
    constructor( 
      private http: HttpClient,
      private messageService: MessageService
    ) { }
          
    private heroesUrl = 'api/data'; 
    httpOptions = {
      headers: new HttpHeaders({ 'Content-Type': 'application/json' })
    };
         
    getHeroes(): Observable&lt;Hero[]&gt; {
      return this.http.get&lt;Hero[]&gt;(this.heroesUrl)
        .pipe(
          tap(_ =&gt; this.log('fetched Heroes')),
          catchError(this.handleError&lt;Hero[]&gt;('getHeroes', []))
      );
    }
  }
  </code></pre>
  <p>so my question is can we change the base of web URI from api/data to test/data or demo/data something like that?</p>