{"id":3327,"date":"2018-03-16T11:05:16","date_gmt":"2018-03-16T05:35:16","guid":{"rendered":"https:\/\/www.botreetechnologies.com\/blog\/?p=3327"},"modified":"2022-12-13T16:38:01","modified_gmt":"2022-12-13T11:08:01","slug":"how-to-sort-records-in-custom-order-by-enum-value-in-rails","status":"publish","type":"post","link":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/","title":{"rendered":"Sort Rails Records Using Enum Value"},"content":{"rendered":"\n<p><a href=\"https:\/\/github.com\/activerecord-hackery\/ransack\" target=\"_blank\" rel=\"noopener noreferrer\">Ransack<\/a> empowers rails developers by enabling the creation of simple and advanced search forms in any Ruby on Rails application.<\/p>\n\n\n\n<p>If we are dealing with simple sort by column then it is very easy to use however if we have Enum but not in the order in which we want to sort is painful.<\/p>\n\n\n\n<p>Let&#8217;s take an example,<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><code>class ClientVisit &lt; ApplicationRecord<\/code><\/p><p><code>enum status: [:inprocess, :completed, :incomplete, :resubmit]<\/code><\/p><p><code>end<\/code><\/p><\/blockquote>\n\n\n\n<p>Here we have a status <i><code>enum<\/code><\/i> where the index of each status defined as,<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><code>{ inprocess: 0, completed: 1, incomplete: 2, resubmit: 3 }<\/code><\/p><\/blockquote>\n\n\n\n<p>Now if you try to sort status column using helper method <b>sort_link<\/b>, it will always sort the data in its <i><code>enum<\/code><\/i> value order (i.e., 0, 1, 2)<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><code>STATUSES = [:inprocess, :completed, :incomplete]<\/code><\/p><p><code>ClientVisit.where(status: STATUSES).ransack(params[:q]).result<\/code><\/p><p><code>QUERY OUTPUT<\/code><\/p><p><code>SELECT \"client_visits\".* FROM \"client_visits\"<\/code><\/p><p><code>WHERE \"client_visits\".\"status\" IN (0, 1, 3) \"client_visits\".\"status\" ASC<\/code><\/p><p><code>SO<\/code><\/p><p><code>FOR \"ASC\" the order will be =&gt; [ 0, 1, 2 ]<\/code><\/p><p><code>FOR \"DESC\" the Order will be =&gt; [ 2, 1, 0 ]<\/code><\/p><\/blockquote>\n\n\n\n<p>Now, if you want to order by status with specific order like sort by status in order:<\/p>\n\n\n\n<p>1. Completed.<\/p>\n\n\n\n<p>2. InComplete.<\/p>\n\n\n\n<p>0. InProcess.<\/p>\n\n\n\n<p>Now, please note here, we CAN NOT override the default sort. Instead, we can create custom scope and column which will fulfill our requirement.<\/p>\n\n\n\n<p>First, go to view file and use a custom column name:<\/p>\n\n\n\n<p>Ex.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><code>Previous:<\/code><\/p><p><code>&lt;%= sort_link(@q, :status, \"STATUS\", { action: 'client_visit' }, { remote: true }) %&gt;<\/code><\/p><p><code>Updated<\/code><\/p><p><code>&lt;%= sort_link(@q, :custom_status, \"STATUS\", { action: 'client_visit' }, { remote: true }) %&gt;<\/code><\/p><\/blockquote>\n\n\n\n<p>Here is a gist of the model with the implementation:<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/ChetanTomar\/d05dc23f6f4d14bb21cf8a14bd3f32a7.js\"><\/script><\/p>\n\n\n\n<p>Now in the controller,<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/ChetanTomar\/08f59aa30771104514135ed71fee02b0.js\"><\/script><\/p>\n\n\n\n<p>Query Output would look like this,<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><code>ASC<\/code><\/p><p><code>SELECT \"client_visits\".* FROM \"client_visits\"<\/code><\/p><p><code>WHERE \"client_visits\".\"status\" IN (0, 1, 2)<\/code><\/p><p><code>ORDER BY CASE WHEN status=1 THEN 0 WHEN status=2 THEN 1 WHEN status=0 THEN 2 END, \"client_visits\".\"status\" ASC<\/code><\/p><p><code>DESC<\/code><\/p><p><code>SELECT \"client_visits\".* FROM \"client_visits\"<\/code><\/p><p><code>WHERE \"client_visits\".\"status\" IN (0, 1, 2)<\/code><\/p><p><code>ORDER BY CASE WHEN status=2 THEN 0 WHEN status=2 THEN 1 WHEN status=1 THEN 2 END, \"client_visits\".\"status\" DESC<\/code><\/p><\/blockquote>\n\n\n\n<p>That&#8217;s what we are expecting. Congratulations!!!<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/www.botreetechnologies.com\/ruby-on-rails-development\">Click here for more details<\/a>&#8230;<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>At <a href=\"https:\/\/www.botreetechnologies.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">BoTree Technologies<\/a>, we build enterprise applications with our RoR team of 25+ engineers.<\/p>\n\n\n\n<p>We also specialize in RPA, AI, Python, Django, JavaScript and ReactJS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.botreetechnologies.com\/contact\">Consulting is free<\/a> &#8211; let us help you grow!<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Ransack empowers rails developers by enabling the creation of simple&#8230;<\/p>\n","protected":false},"author":20,"featured_media":13783,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,10],"tags":[],"class_list":["post-3327","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-on-rails","category-technology"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Sort Rails Records Using Enum Value - BoTree Technologies<\/title>\n<meta name=\"description\" content=\"Learn more about how to sort records in custom order by enum value in rails. Contact us to build web and mobile app to add value to business.\" \/>\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.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sort Rails Records Using Enum Value - BoTree Technologies\" \/>\n<meta property=\"og:description\" content=\"Learn more about how to sort records in custom order by enum value in rails. Contact us to build web and mobile app to add value to business.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/\" \/>\n<meta property=\"og:site_name\" content=\"BoTree Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BoTreeTechnologies\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-16T05:35:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-13T11:08:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2018\/03\/sort-records-using-enum-value-in-rails-app.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Chetan Tomar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:site\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Chetan Tomar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/\"},\"author\":{\"name\":\"Chetan Tomar\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/821bdcbee2e598676d9028dc6e7a6fdb\"},\"headline\":\"Sort Rails Records Using Enum Value\",\"datePublished\":\"2018-03-16T05:35:16+00:00\",\"dateModified\":\"2022-12-13T11:08:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/\"},\"wordCount\":224,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2018\/03\/sort-records-using-enum-value-in-rails-app.jpg\",\"articleSection\":[\"Ruby on Rails\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/\",\"name\":\"Sort Rails Records Using Enum Value - BoTree Technologies\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2018\/03\/sort-records-using-enum-value-in-rails-app.jpg\",\"datePublished\":\"2018-03-16T05:35:16+00:00\",\"dateModified\":\"2022-12-13T11:08:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/821bdcbee2e598676d9028dc6e7a6fdb\"},\"description\":\"Learn more about how to sort records in custom order by enum value in rails. Contact us to build web and mobile app to add value to business.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#primaryimage\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2018\/03\/sort-records-using-enum-value-in-rails-app.jpg\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2018\/03\/sort-records-using-enum-value-in-rails-app.jpg\",\"width\":1920,\"height\":1280,\"caption\":\"Custom order based on Enum values\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.botreetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sort Rails Records Using Enum Value\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/\",\"name\":\"BoTree Technologies\",\"description\":\"Committed to inspire generation.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/821bdcbee2e598676d9028dc6e7a6fdb\",\"name\":\"Chetan Tomar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/chetan-tomar-150x150.png\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/chetan-tomar-150x150.png\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/chetan-tomar-150x150.png\",\"caption\":\"Chetan Tomar\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sort Rails Records Using Enum Value - BoTree Technologies","description":"Learn more about how to sort records in custom order by enum value in rails. Contact us to build web and mobile app to add value to business.","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.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/","og_locale":"en_US","og_type":"article","og_title":"Sort Rails Records Using Enum Value - BoTree Technologies","og_description":"Learn more about how to sort records in custom order by enum value in rails. Contact us to build web and mobile app to add value to business.","og_url":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/","og_site_name":"BoTree Technologies","article_publisher":"https:\/\/www.facebook.com\/BoTreeTechnologies\/","article_published_time":"2018-03-16T05:35:16+00:00","article_modified_time":"2022-12-13T11:08:01+00:00","og_image":[{"width":1920,"height":1280,"url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2018\/03\/sort-records-using-enum-value-in-rails-app.jpg","type":"image\/jpeg"}],"author":"Chetan Tomar","twitter_card":"summary_large_image","twitter_creator":"@BoTreeTech","twitter_site":"@BoTreeTech","twitter_misc":{"Written by":"Chetan Tomar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#article","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/"},"author":{"name":"Chetan Tomar","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/821bdcbee2e598676d9028dc6e7a6fdb"},"headline":"Sort Rails Records Using Enum Value","datePublished":"2018-03-16T05:35:16+00:00","dateModified":"2022-12-13T11:08:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/"},"wordCount":224,"commentCount":0,"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2018\/03\/sort-records-using-enum-value-in-rails-app.jpg","articleSection":["Ruby on Rails","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/","url":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/","name":"Sort Rails Records Using Enum Value - BoTree Technologies","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#primaryimage"},"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2018\/03\/sort-records-using-enum-value-in-rails-app.jpg","datePublished":"2018-03-16T05:35:16+00:00","dateModified":"2022-12-13T11:08:01+00:00","author":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/821bdcbee2e598676d9028dc6e7a6fdb"},"description":"Learn more about how to sort records in custom order by enum value in rails. Contact us to build web and mobile app to add value to business.","breadcrumb":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#primaryimage","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2018\/03\/sort-records-using-enum-value-in-rails-app.jpg","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2018\/03\/sort-records-using-enum-value-in-rails-app.jpg","width":1920,"height":1280,"caption":"Custom order based on Enum values"},{"@type":"BreadcrumbList","@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-sort-records-in-custom-order-by-enum-value-in-rails\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.botreetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Sort Rails Records Using Enum Value"}]},{"@type":"WebSite","@id":"https:\/\/www.botreetechnologies.com\/blog\/#website","url":"https:\/\/www.botreetechnologies.com\/blog\/","name":"BoTree Technologies","description":"Committed to inspire generation.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/821bdcbee2e598676d9028dc6e7a6fdb","name":"Chetan Tomar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/chetan-tomar-150x150.png","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/chetan-tomar-150x150.png","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/chetan-tomar-150x150.png","caption":"Chetan Tomar"}}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/3327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=3327"}],"version-history":[{"count":3,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/3327\/revisions"}],"predecessor-version":[{"id":18272,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/3327\/revisions\/18272"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media\/13783"}],"wp:attachment":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=3327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=3327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=3327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}