Skip to content

Instantly share code, notes, and snippets.

@danielpowney
Last active March 24, 2017 21:24
Show Gist options
  • Save danielpowney/eb880363ca2c873f0cc3454570ba7c57 to your computer and use it in GitHub Desktop.
Save danielpowney/eb880363ca2c873f0cc3454570ba7c57 to your computer and use it in GitHub Desktop.
rating-item-results REST API route endpoint e.g. https://<website>/wp-json/mrp/v1/rating-item-results?post_id=1128&entry_status=
[
{
"adjusted_star_result":3.5,
"star_result":3.5,
"adjusted_score_result":3.5,
"score_result":3.5,
"adjusted_percentage_result":70,
"percentage_result":70,
"total_max_option_value":"5",
"count_entries":"2",
"option_totals":[
0,
0,
1,
0,
0,
1
],
"post_id":1128,
"rating_form_id":1,
"rating_item_id":61
},
{
"adjusted_star_result":5,
"star_result":5,
"adjusted_score_result":5,
"score_result":5,
"adjusted_percentage_result":100,
"percentage_result":100,
"total_max_option_value":"5",
"count_entries":"2",
"option_totals":[
0,
0,
0,
0,
0,
2
],
"post_id":1128,
"rating_form_id":1,
"rating_item_id":67
},
{
"adjusted_star_result":3,
"star_result":3,
"adjusted_score_result":3,
"score_result":3,
"adjusted_percentage_result":60,
"percentage_result":60,
"total_max_option_value":"5",
"count_entries":"2",
"option_totals":[
0,
1,
0,
0,
0,
1
],
"post_id":1128,
"rating_form_id":1,
"rating_item_id":68
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment