Support resource groupings for prefixed APIs

The fact that an API has a prefix (e.g., /api) should not affect the
way resources are grouped for documentation purposes.  This patch
updates the hardcoded single level of resource grouping to ignore the
prefix (which available as part of the route object).