better API rendering of resources (brief and detailed) and collections (pagination)