{"id":48280,"date":"2013-04-18T12:26:23","date_gmt":"2013-04-18T09:26:23","guid":{"rendered":"https:\/\/www.altoros.com\/blog\/?p=48280"},"modified":"2021-12-10T11:38:41","modified_gmt":"2021-12-10T08:38:41","slug":"accessible-resources-list-dry-solution-for-controllers","status":"publish","type":"post","link":"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/","title":{"rendered":"Accessible Resources List: The DRY Solution for Controllers"},"content":{"rendered":"<p><a href=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2013\/04\/cancancan-logo.png\"><img decoding=\"async\" src=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2013\/04\/cancancan-logo-1024x1024.png\" alt=\"\" width=\"150\" class=\"alignright size-large wp-image-58056\" \/><\/a><\/p>\n<p>Imagine that we have a <code style=\"color: black; background-color: #e6e6e6;\">Trademarks<\/code> controller with an <code style=\"color: black; background-color: #e6e6e6;\">index<\/code> action. However, we shouldn\u2019t get all the trademarks in this action. What we need instead is to get all the trademarks accessible by the current user only. This is a challenge we are going to solve.<\/p>\n<p>There is a constraint here, though. You are not able to use the abilities defined by blocks (please, read <a href=\"https:\/\/github.com\/ryanb\/cancan\/wiki\/Defining-Abilities-with-Blocks\" rel=\"noopener noreferrer\" target=\"_blank\">this guide<\/a> on how to define abilities). To learn more about the fetching records technique, please check out <a href=\"https:\/\/github.com\/ryanb\/cancan\/wiki\/Fetching-Records\" rel=\"noopener noreferrer\" target=\"_blank\">this documentation<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_79_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#The_sledgehammer\" >The sledgehammer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#The_DRY_solution\" >The DRY solution<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#Further_reading\" >Further reading<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#About_the_author\" >About the author<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"The_sledgehammer\"><\/span>The sledgehammer<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The simplest solution will be something looking like shown below.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nclass TrademarksController &amp;lt; ApplicationController\r\n  def index\r\n    @trademarks =Trademark.where :active =&amp;gt; true\r\n  end\r\nend\r\n<\/pre>\n<p>One day we have to change our conditions for the selected trademarks.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nclass TrademarksController &amp;lt; ApplicationController\r\n  def index\r\n    @trademarks = Trademark.where :active =&amp;gt; true, :owner_id =&amp;gt; current_user.id\r\n  end\r\nend\r\n<\/pre>\n<p>Surely, we can define the scope of the <code style=\"color: black; background-color: #e6e6e6;\">Trademark<\/code> model, but this will not save us from changes in the controller. We still have a chance to edit an <code style=\"color: black; background-color: #e6e6e6;\">index<\/code> action in the feature. For example, we would have to combine two scopes there.<\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"The_DRY_solution\"><\/span>The <code style=\"color: black; background-color: #e6e6e6;\">DRY<\/code> solution<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>There is a better solution that can help us to avoid these repetitive<br \/>\ntasks. This solution is achieved by installing the <code style=\"color: black; background-color: #e6e6e6;\">cancan<\/code> gem. I hope you don\u2019t hate this gem and can add it to the project.<\/p>\n<p>So, the first step for this solution as you have already guessed will<br \/>\nbe installing <code style=\"color: black; background-color: #e6e6e6;\">cancan<\/code>. For this purpose, add <code style=\"color: black; background-color: #e6e6e6;\">cancan<\/code> to the Gemfile and run the <code style=\"color: black; background-color: #e6e6e6;\">bundle install<\/code> command in your terminal. Then, initialize with <code style=\"color: black; background-color: #e6e6e6;\">rails g cancan:ability<\/code>.<\/p>\n<p>Open the <code style=\"color: black; background-color: #e6e6e6;\">\/app\/models\/ability.rb<\/code> file and define the abilities. Below, you can see how to do it.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nclass Ability\r\n  include CanCan::Ability\r\n\r\n  def&lt; initialize(user)\r\n    user ||= User.new\r\n   can :read, Trademark, :active =&amp;gt; true, :owner_id =&amp;gt; user.id\r\n  end\r\nend\r\n<\/pre>\n<p>Currently, we are at the last step. We have to refactor a controller. Use the <code style=\"color: black; background-color: #e6e6e6;\">accessible_by<\/code> method provided by <code style=\"color: black; background-color: #e6e6e6;\">cancan<\/code> as shown blow.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nclass TrademarksController &amp;lt; ApplicationController\r\n  def index\r\n    @trademarks = Trademark.accessible_by(current_ability)\r\n end\r\nend\r\n<\/pre>\n<p>Implementation of the <code style=\"color: black; background-color: #e6e6e6;\">accessible_by<\/code> method is quite simple.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndef accessible_by(ability, action = :index)\r\n  ability.model_adapter(self action).database_records\r\nend\r\n<\/pre>\n<p>It just fetches records from the database according to specified scopes in the abilities. Pay attention that you are able to pass any action here, not only the <code style=\"color: #222222; background-color: #e6e6e6; padding: 1px 2px;\">index<\/code> action.<\/p>\n<p>Here we are. The code in the controller\u2019s action won\u2019t be changed as often as it was before. I think, we managed to minimize the possibility of changes for this action.<\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Further_reading\"><\/span>Further reading<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><a href=\"https:\/\/www.altoros.com\/blog\/things-that-i-hate-as-a-web-developer\/\">Things that I Hate as a Web Developer<\/a><\/li>\n<li><a href=\"https:\/\/www.altoros.com\/blog\/visual-studio-code-really-surprised-me\/\">Visual Studio Code Really Surprised Me<\/a><\/li>\n<li><a href=\"https:\/\/www.altoros.com\/blog\/spidermans-extenstion-methods\/\">Spiderman\u2019s Extenstion Methods<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"About_the_author\"><\/span>About the author<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2013\/02\/andrei-kaleshka.png\" width=\"110\" class=\"alignright size-thumbnail wp-image-64162\" \/><\/p>\n<p><small><a href=\"https:\/\/www.linkedin.com\/in\/ka8725\/\" rel=\"noopener noreferrer\" target=\"_blank\">Andrey Koleshko<\/a> is a Ruby developer at Altoros. He is majoring in delivering payment gateway solutions, as well as systems for billing, invoicing, subscriptions, bookkeeping, and accounting. Find him on <a href=\"https:\/\/github.com\/ka8725\" rel=\"noopener noreferrer\" target=\"_blank\">GitHub<\/a>.<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post I describe how to achieve DRY solution for controller&#8217;s actions which return the list of scoped objects. In the another words I show here how to avoid repetitive changes in controllers actions like this: Model.where :active => true<\/p>\n","protected":false},"author":34,"featured_media":58059,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[214],"tags":[1000,895],"class_list":["post-48280","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-github","tag-research-and-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Accessible Resources List: The DRY Solution for Controllers | Altoros<\/title>\n<meta name=\"description\" content=\"This blog post explains how to achieve the DRY solution for controller&#039;s actions that return the list of scoped objects to avoid repetitive changes.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Accessible Resources List: The DRY Solution for Controllers | Altoros\" \/>\n<meta property=\"og:description\" content=\"In this post I describe how to achieve DRY solution for controller&#039;s actions which return the list of scoped objects. In the another words I show here how to avoid repetitive changes in controllers actions like this: Model.where :active =&gt; true\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/\" \/>\n<meta property=\"og:site_name\" content=\"Altoros\" \/>\n<meta property=\"article:published_time\" content=\"2013-04-18T09:26:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-10T08:38:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2013\/04\/Accessible-Resources-List-The-DRY-Solution-for-Controllers.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alena Vasilenko\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alena Vasilenko\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/\",\"url\":\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/\",\"name\":\"Accessible Resources List: The DRY Solution for Controllers | Altoros\",\"isPartOf\":{\"@id\":\"https:\/\/www.altoros.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2013\/04\/Accessible-Resources-List-The-DRY-Solution-for-Controllers.png\",\"datePublished\":\"2013-04-18T09:26:23+00:00\",\"dateModified\":\"2021-12-10T08:38:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.altoros.com\/blog\/#\/schema\/person\/019e8147b835bc8f1b4abd8a4fa42c7f\"},\"description\":\"In this post I describe how to achieve DRY solution for controller's actions which return the list of scoped objects. In the another words I show here how to avoid repetitive changes in controllers actions like this: Model.where :active => true\",\"breadcrumb\":{\"@id\":\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#primaryimage\",\"url\":\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2013\/04\/Accessible-Resources-List-The-DRY-Solution-for-Controllers.png\",\"contentUrl\":\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2013\/04\/Accessible-Resources-List-The-DRY-Solution-for-Controllers.png\",\"width\":1024,\"height\":576},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.altoros.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Accessible Resources List: The DRY Solution for Controllers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.altoros.com\/blog\/#website\",\"url\":\"https:\/\/www.altoros.com\/blog\/\",\"name\":\"Altoros\",\"description\":\"Insight\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.altoros.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.altoros.com\/blog\/#\/schema\/person\/019e8147b835bc8f1b4abd8a4fa42c7f\",\"name\":\"Alena Vasilenko\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.altoros.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2019\/06\/alena-vasilenko-author-e1561752194994-96x96.jpg\",\"contentUrl\":\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2019\/06\/alena-vasilenko-author-e1561752194994-96x96.jpg\",\"caption\":\"Alena Vasilenko\"},\"description\":\"Alena Vasilenko is Communications Manager at Altoros. She has proven track record of supporting R&amp;D engineers in their research activities on such topics as big data and cloud computing, translating the research results into easy-to-understand stories.\",\"url\":\"https:\/\/www.altoros.com\/blog\/author\/alena-vasilenko\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Accessible Resources List: The DRY Solution for Controllers | Altoros","description":"This blog post explains how to achieve the DRY solution for controller's actions that return the list of scoped objects to avoid repetitive changes.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/","og_locale":"en_US","og_type":"article","og_title":"Accessible Resources List: The DRY Solution for Controllers | Altoros","og_description":"In this post I describe how to achieve DRY solution for controller's actions which return the list of scoped objects. In the another words I show here how to avoid repetitive changes in controllers actions like this: Model.where :active => true","og_url":"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/","og_site_name":"Altoros","article_published_time":"2013-04-18T09:26:23+00:00","article_modified_time":"2021-12-10T08:38:41+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2013\/04\/Accessible-Resources-List-The-DRY-Solution-for-Controllers.png","type":"image\/png"}],"author":"Alena Vasilenko","twitter_misc":{"Written by":"Alena Vasilenko","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/","url":"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/","name":"Accessible Resources List: The DRY Solution for Controllers | Altoros","isPartOf":{"@id":"https:\/\/www.altoros.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#primaryimage"},"image":{"@id":"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#primaryimage"},"thumbnailUrl":"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2013\/04\/Accessible-Resources-List-The-DRY-Solution-for-Controllers.png","datePublished":"2013-04-18T09:26:23+00:00","dateModified":"2021-12-10T08:38:41+00:00","author":{"@id":"https:\/\/www.altoros.com\/blog\/#\/schema\/person\/019e8147b835bc8f1b4abd8a4fa42c7f"},"description":"In this post I describe how to achieve DRY solution for controller's actions which return the list of scoped objects. In the another words I show here how to avoid repetitive changes in controllers actions like this: Model.where :active => true","breadcrumb":{"@id":"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#primaryimage","url":"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2013\/04\/Accessible-Resources-List-The-DRY-Solution-for-Controllers.png","contentUrl":"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2013\/04\/Accessible-Resources-List-The-DRY-Solution-for-Controllers.png","width":1024,"height":576},{"@type":"BreadcrumbList","@id":"https:\/\/www.altoros.com\/blog\/accessible-resources-list-dry-solution-for-controllers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.altoros.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Accessible Resources List: The DRY Solution for Controllers"}]},{"@type":"WebSite","@id":"https:\/\/www.altoros.com\/blog\/#website","url":"https:\/\/www.altoros.com\/blog\/","name":"Altoros","description":"Insight","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.altoros.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.altoros.com\/blog\/#\/schema\/person\/019e8147b835bc8f1b4abd8a4fa42c7f","name":"Alena Vasilenko","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.altoros.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2019\/06\/alena-vasilenko-author-e1561752194994-96x96.jpg","contentUrl":"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2019\/06\/alena-vasilenko-author-e1561752194994-96x96.jpg","caption":"Alena Vasilenko"},"description":"Alena Vasilenko is Communications Manager at Altoros. She has proven track record of supporting R&amp;D engineers in their research activities on such topics as big data and cloud computing, translating the research results into easy-to-understand stories.","url":"https:\/\/www.altoros.com\/blog\/author\/alena-vasilenko\/"}]}},"_links":{"self":[{"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/posts\/48280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/comments?post=48280"}],"version-history":[{"count":19,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/posts\/48280\/revisions"}],"predecessor-version":[{"id":65349,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/posts\/48280\/revisions\/65349"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/media\/58059"}],"wp:attachment":[{"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/media?parent=48280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/categories?post=48280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/tags?post=48280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}