add posts and nested post resource, templates for each