{"info":{"_postman_id":"c121a883-a0bb-40fc-b469-930badd4996f","name":"Yet Another Stars Rating Rest API","description":"<html><head></head><body><p>Yet Another Stars Rating (YASR) 2.5.0+ is fully integrated with the WordPress REST API.</p>\n<h2 id=\"requirements\">Requirements</h2>\n<ul>\n<li>YASR 2.5.0+</li>\n<li>Wordpress 5.0+</li>\n<li>Pretty permalinks in  <code>Settings &gt; Permalinks</code>  so that the custom endpoints are supported.  <strong>Default permalinks will not work.</strong></li>\n<li>You may access the API over either HTTP or HTTPS, but  <em>HTTPS is recommended where possible</em>.</li>\n</ul>\n<h2 id=\"requestresponse-format\">Request/Response Format</h2>\n<p>The default response format is JSON.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"29387224","collectionId":"c121a883-a0bb-40fc-b469-930badd4996f","publishedId":"2s9Y5bNzsu","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-30T07:02:28.000Z"},"item":[{"name":"Overall Rating","id":"49708fc6-f034-4337-8660-17204a9fb102","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}wp-json/wp/v2/posts/<POSTID>?_fields=meta.yasr_overall_rating","description":"<p>Get the overall_rating post meta  simply adding <code>yasr_overall_rating</code> to the meta value.</p>\n","urlObject":{"path":["wp","v2","posts","<POSTID>"],"host":["{{host}}wp-json"],"query":[{"description":{"content":"<p>(string) required</p>\n<h3 id=\"returning-values\">Returning values</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>(int)  overall rating\n</code></pre>","type":"text/plain"},"key":"_fields","value":"meta.yasr_overall_rating"}],"variable":[]}},"response":[],"_postman_id":"49708fc6-f034-4337-8660-17204a9fb102"},{"name":"Visitor Votes","id":"9a92b647-8e8d-46d2-8ca2-679fee5c130c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}wp-json/wp/v2/posts/<POSTID>?_fields=yasr_visitor_votes","description":"<p>YASR adds a new custom field called <code>yasr_visitor_votes</code> to the standard endpoint <code>wp-json/wp/v2/POSTTYPE/&lt;POSTID&gt;</code></p>\n","urlObject":{"path":["wp","v2","posts","<POSTID>"],"host":["{{host}}wp-json"],"query":[{"description":{"content":"<p>(string) required</p>\n<h3 id=\"returning-values\">Returning values</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>(int)  number_of_votes  \n(int)  sum_votes  \n(array) stars attribute {  \n   (bool) read_only  \n   (bool | string) span_bottom  \n}\n</code></pre>","type":"text/plain"},"key":"_fields","value":"yasr_visitor_votes"}],"variable":[]}},"response":[],"_postman_id":"9a92b647-8e8d-46d2-8ca2-679fee5c130c"},{"name":"MultiSet","id":"ec76bb5f-ed58-40da-8c5d-7b6e848c59a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/wp-json/yet-another-stars-rating/v1/yasr-multiset/","description":"<h3 id=\"get-multi-set-ratings\">Get Multi Set ratings</h3>\n<p>Yasr Multi Set endpoint.</p>\n<p>Get ratings for a specified Multi Set used into a post, page, CPT or comment.</p>\n","urlObject":{"path":["wp-json","yet-another-stars-rating","v1","yasr-multiset",""],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>(int) Required</p>\n<p>The set ID</p>\n","type":"text/plain"},"key":"set_id","value":""},{"disabled":true,"description":{"content":"<p>(int) Optional if comment_id is provided, required otherwise </p>\n<p>post, page or CPT id</p>\n","type":"text/plain"},"key":"post_id","value":""},{"disabled":true,"description":{"content":"<p>(int) Optional</p>\n<p>get data from yasr_visitor_multiset instead of yasr_multiset</p>\n","type":"text/plain"},"key":"visitor","value":""},{"disabled":true,"description":{"content":"<p>(int) Optional</p>\n<p>If pro version is used, get multiset data from a comment_id</p>\n","type":"text/plain"},"key":"comment_id","value":""}],"variable":[]}},"response":[],"_postman_id":"ec76bb5f-ed58-40da-8c5d-7b6e848c59a6"},{"name":"Rankings","id":"862e771b-7b27-4bff-9c35-39594489df34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{host}}/wp-json/yet-another-stars-rating/v1/yasr-rankings/","description":"<p>Yasr Ranking endpoint.</p>\n<p><code>source</code> is the only required params</p>\n","urlObject":{"path":["wp-json","yet-another-stars-rating","v1","yasr-rankings",""],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>(string) Required</p>\n<p>Accepted values  </p>\n<ul>\n<li>overall_rating  </li>\n<li>visitor_votes  </li>\n<li>visitor_multi  </li>\n<li>comments</li>\n</ul>\n","type":"text/plain"},"key":"source","value":""},{"disabled":true,"description":{"content":"<p>(int) optional\nWorks only if source === 'visitor_multi' or === 'author_multi'\nThe set ID. Optional if only one Multi Set is used or if you want to show the first Multi Set.\ndefault: lower ID.</p>\n","type":"text/plain"},"key":"setid","value":""},{"disabled":true,"description":{"content":"<p>(string) Optional.<br />The ranking to return, ordered by MOST rated or HIGHEST rated</p>\n<p>Accepted values (case insensitive)  </p>\n<ul>\n<li>most</li>\n<li>highet</li>\n</ul>\n<p>default: 'most'</p>\n<p>Doesn't work if source === 'overall_rating'</p>\n","type":"text/plain"},"key":"show","value":""},{"disabled":true,"description":{"content":"<p>PRO ONLY</p>\n<p>(string) Optional\n    Accepted values (case insensitive): </p>\n<ul>\n<li>ASC </li>\n<li>DESC.</li>\n</ul>\n<p>Default: DESC</p>\n","type":"text/plain"},"key":"order_by","value":""},{"disabled":true,"description":{"content":"<p>PRO ONLY</p>\n<p>(int) Optional\n    INT between 1 and 100  </p>\n<p>Default: 10</p>\n","type":"text/plain"},"key":"limit","value":""},{"disabled":true,"description":{"content":"<p>PRO ONLY</p>\n<p>Optional\nAccepted values: comma separated value of ints (e.g. INT, INT, INT).</p>\n<p>Default: false</p>\n","type":"text/plain"},"key":"ctg","value":""},{"disabled":true,"description":{"content":"<p>PRO ONLY</p>\n<p>(string) Optional  </p>\n<p>If set, must be a (single) valid CPT\n.\nDefault: </p>\n","type":"text/plain"},"key":"cpt","value":""},{"disabled":true,"description":{"content":"<p>PRO ONLY</p>\n<p>(int) Optional  </p>\n<p>Set the minimum number of votes (e.g. show only posts with number of votes &gt; 10)</p>\n","type":"text/plain"},"key":"required_votes","value":""},{"disabled":true,"description":{"content":"<p>PRO ONLY</p>\n<p>(date YYYY-mm-dd) Optional\n    start date\n.</p>\n<p>Default: ''</p>\n","type":"text/plain"},"key":"start_date","value":null},{"disabled":true,"description":{"content":"<p>PRO ONLY</p>\n<p>(date YYYY-mm-dd) Optional\n    start date</p>\n<p>.\nDefault: ''</p>\n","type":"text/plain"},"key":"end_date","value":null}],"variable":[]}},"response":[],"_postman_id":"862e771b-7b27-4bff-9c35-39594489df34"}]}