finished post resource with unit tests