Rating parameters JSON input from android device to WordPress site?

My problem statement:
I want to know that what would be the JSON input for rating parameters while submitting the form through android device?

What I’ve tried:

POST URL: http://testwordpresssite.com/wp-json/wp/v2/comments
JSON Input:
{
    "post": "1555",
    "content": "this is test comment from JSON",
    "author_name": "this is test",
    "author_email": "amitgupta2388@gmail.com",
    "overall":"4",
    "quality":"3",
    "support":"2",
    "price":"1",
    "products":"5"
}

My rating parameters are overall, quality, support, price and products.
Content is getting stored in database but not rating params.
I’m using globo 1.1.7 WordPress theme.

Additional Info:
We’ve two tables where post review and star rating stored wp_comments and wp_commentmeta respectively.

Please let me know if you need any additional information.

Thanks in advance.

Read more here: Rating parameters JSON input from android device to WordPress site?

Leave a Reply

Your email address will not be published. Required fields are marked *