working on post and delete methods for posts api