I am using an AngularJS application with WordPress backend. I am able to retrieve comments using WP REST API v2., using the following url
/wp-json/wp/v2/comments?post=1324
But is there a way to post comments in WP REST API v2. I was unable to find anything in documentation. Thanks.
Take a look at the comment docs – http://v2.wp-api.org/reference/comments/
And the following syntax:
https://www.example.com/wp-json/wp/v2/comments?author=Your%20Name%20Here&author_email=your-email-address@website-address-here.com&author_name=Your%20Name%20Here&content=Your%20Comment%20Here&post=1604252