generate a resource for Posts