{"id":4160,"date":"2026-05-12T08:18:21","date_gmt":"2026-05-12T08:18:21","guid":{"rendered":"https:\/\/developers-test.one2five.digital\/?post_type=docs&#038;p=4160"},"modified":"2026-05-12T08:21:17","modified_gmt":"2026-05-12T08:21:17","slug":"get-review-summaries","status":"publish","type":"docs","link":"https:\/\/developers-test.one2five.digital\/?docs=get-review-summaries","title":{"rendered":"Get Review Summaries"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div id=\"swagger-ui\"><\/div>\n\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/swagger-ui\/3.51.1\/swagger-ui-bundle.js\"><\/script>\n<script>\n    window.onload = function () {\n        fetch('https:\/\/dev.one2five.digital\/app\/fetch\/swagger.json')\n            .then(response => response.json())\n            .then(json => {\n                \/\/ Filter the Swagger JSON to include only operations with the \"Authentication\" tag and remove other tags\n                delete json.info.title;\n                delete json.info.version;\n                const filteredSpec = filterSwaggerSpec(json, \"Get Review Summaries\");\n\n                \/\/ Initialize Swagger UI with the filtered specification\n                const ui = SwaggerUIBundle({\n                    spec: filteredSpec,\n                    dom_id: '#swagger-ui',\n                    deepLinking: true,\n                    presets: [SwaggerUIBundle.presets.apis],\n                    plugins: [SwaggerUIBundle.plugins.DownloadUrl],\n                    layout: \"BaseLayout\",\n                    defaultModelsExpandDepth: 0, \/\/ Set to 0 to not expand models by default\n                    docExpansion: 'list', \/\/ Show operations list by default\n                });\n                window.ui = ui;\n            })\n            .catch(error => console.error('Error fetching Swagger JSON:', error));\n\n        \/\/ Function to filter Swagger spec based on tag and remove other tags\n        function filterSwaggerSpec(spec, tagName) {\n            const filteredSpec = JSON.parse(JSON.stringify(spec)); \/\/ Deep copy the spec\n            filteredSpec.tags = filteredSpec.tags.filter(tag => tag.name === tagName); \/\/ Keep only the specified tag\n            const paths = filteredSpec.paths;\n\n            for (const path in paths) {\n                for (const method in paths[path]) {\n                    const operation = paths[path][method];\n                    if (operation.tags && operation.tags.length === 1 && operation.tags[0] === tagName) {\n                        \/\/ Operation has the specified tag, keep it\n                        continue;\n                    } else {\n                        \/\/ Remove the operation if it doesn't have the specified tag\n                        delete paths[path][method];\n                    }\n                }\n            }\n            return filteredSpec;\n        }\n    };\n<\/script>\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/swagger-ui\/3.51.1\/swagger-ui.css\">\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","inline_featured_image":false,"footnotes":""},"doc_category":[56],"doc_tag":[],"class_list":["post-4160","docs","type-docs","status-publish","hentry","doc_category-get-review-summaries"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/developers-test.one2five.digital\/index.php?rest_route=\/wp\/v2\/docs\/4160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers-test.one2five.digital\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/developers-test.one2five.digital\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/developers-test.one2five.digital\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developers-test.one2five.digital\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4160"}],"version-history":[{"count":2,"href":"https:\/\/developers-test.one2five.digital\/index.php?rest_route=\/wp\/v2\/docs\/4160\/revisions"}],"predecessor-version":[{"id":4163,"href":"https:\/\/developers-test.one2five.digital\/index.php?rest_route=\/wp\/v2\/docs\/4160\/revisions\/4163"}],"wp:attachment":[{"href":"https:\/\/developers-test.one2five.digital\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4160"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/developers-test.one2five.digital\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_category&post=4160"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/developers-test.one2five.digital\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=4160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}