added PostsApi with insert implementation