title: How to custom fake-db feature in angular
body: <p>How to use fake-db feature (I'm using <a href="https://github.com/angular/in-memory-web-api/blob/master/interfaces.d.ts" rel="nofollow noreferrer">this</a>) in angular that support the api with response like below.
  For getting the list</p>
  
  <pre><code>// GET 'api/outlets'
  {
    data: [
      {'id':1, 'name': 'Outlet 1', ... },
      {'id':2, 'name': 'Outlet 2', ... },
      {'id':3, 'name': 'Outlet 3', ... },
    ],
  }
  </code></pre>
  
  <p>For getting the detail</p>
  
  <pre><code>// GET 'api/outlets/2'
  {
    data: {
      'id':2, 
      'name': 'Outlet 2', 
      ... 
    }
  }
  </code></pre>