Revert "removed return type from postResource()."

This reverts commit a780cab57829756b7ba6ae113df03d2e4aa4673e.