api resource: expose resource routes in a way that they can be introspected easily