code: function getConfiguredPath (path) {
      if (options.useBasePath && context.api && context.api.basePath) {
        return context.api.basePath + path;
      }
      else {
        return path;
      }
    }
docs: Prefixes the given path with the API's basePath, if that option is enabled and the API has a basePath.
  
  @param   {string}    path
  @returns {string}