adding REST support for PostController