code: function initResource (ravelInstance, koaRouter) {
    // decorate methods with @mapping before handing off to Routes init
    buildRoute(ravelInstance, this, Routes.GET, 'getAll');
    buildRoute(ravelInstance, this, Routes.PUT, 'putAll');
    buildRoute(ravelInstance, this, Routes.DELETE, 'deleteAll');
    buildRoute(ravelInstance, this, Routes.GET, 'get');
    buildRoute(ravelInstance, this, Routes.POST, 'post');
    buildRoute(ravelInstance, this, Routes.PUT, 'put');
    buildRoute(ravelInstance, this, Routes.DELETE, 'delete');
  
    // hand off to routes init
    initRoutes.call(this, ravelInstance, koaRouter);
  }
docs: Initialization function called by Ravel during init().
  
  @private
  
  @param {Ravel} ravelInstance - A reference to a Ravel application instance.
  @param {Object} koaRouter - A reference to a koa-router object.