{"id":14990,"date":"2021-01-25T19:24:10","date_gmt":"2021-01-25T13:54:10","guid":{"rendered":"https:\/\/www.botreetechnologies.com\/blog\/?p=14990"},"modified":"2021-09-09T15:56:28","modified_gmt":"2021-09-09T10:26:28","slug":"slugs-in-rails-using-friendly-id-gem","status":"publish","type":"post","link":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/","title":{"rendered":"Slugs in Rails using Friendly ID Gem"},"content":{"rendered":"\n<p>FriendlyId is a very good gem which allows you to replace ids in your URLs with strings. This lets your Rails app work with \u2018friendly\u2019 URLs like \u2018myapp \/users\/john\u2019 as opposed to&nbsp; \u2018myapp\/users\/1\u2019.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.botreetechnologies.com\/ruby-on-rails-development\">Ruby on Rails development company<\/a> considers this gem as most essential for Rails applications due to its ability to make links memorable.&nbsp;<\/p>\n\n\n\n<p><strong>Let&#8217;s start with how to use this gem in a Rails application by following below.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>The very first step you have to follow is to install the gem.<\/li><li>Add in your Gem file:<code>gem 'friendly_id', '~&gt; 5.2' # Note: MUST use 5.0.0 or greater for Rails 4.0+<\/code><\/li><li>Then execute \u2018bundle install\u2019.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Next step is to add a <strong>slug<\/strong> column to the model on which you want a friendly_id.<\/li><li>Here, I have a model called \u201cGroup\u201d on which I am going to add a slug column.<\/li><\/ul>\n\n\n\n<p><code>rails g migration add_slug_to_groups slug:string:uniq<\/code><br>\n<code>rails db:migrate<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>In <code>db\/migrate\/add_slug_to_groups.rb<\/code> you have the following:<\/li><\/ul>\n\n\n\n<p><code>add_column :groups, :slug, :string<\/code><br><code>add_index :groups, :slug, unique: true<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Now open the rails console and generate a configuration file for friendly_id.<\/li><\/ul>\n\n\n\n<p><code>rails g friendly_id<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>If you are implementing friendly_id in your existing model, then you have to run the following command in the rails console to generate their slugs.<\/li><\/ul>\n\n\n\n<p><code>Model.find_each(&amp;:save)<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>In my case, <code>Group.find_each(&amp;:save)<\/code><\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Let\u2019s extend or include the <code>friendly_id<\/code> module in our model to access the methods defined in it.<\/li><li>In models\/group.rb, we have a name column for the group on which we are going to add a friendly_id.<\/li><\/ul>\n\n\n\n<p><code>class Group &lt; ApplicationRecord<\/code><br>\n<code>&nbsp;&nbsp;&nbsp;&nbsp;extend FriendlyId<\/code><br>\n<code>&nbsp;&nbsp;&nbsp;&nbsp;friendly_id :name, use: :slugged<\/code><br>\n<code>end<\/code><br>\n<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Generally, some people add options like above <code>use: :slugged<\/code>. If you want to configure friendly_id for your all models then you can set default in the initializer.<\/li><li>In config\/initializers\/friendly_id.rb<\/li><\/ul>\n\n\n\n<p><code>FriendlyId.defaults do |config|<\/code><br>\n<code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;config.use :finders<\/code><br>\n<code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;config.use :slugged<\/code><br>\n<code>end<\/code><br>\n<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Now , you can write in any model friendly_id without using <code>use: :slugged<\/code>.<ul><li>Create a new group by:<\/li><\/ul><\/li><\/ul>\n\n\n\n<p><code>Group.create! name: \u201ctech lead\u201d<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>In controller, change the Group.find by below:<\/li><\/ul>\n\n\n\n<p><code>@group = Group.friendly.find(params[:id])<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Now you can check your local server by finding a record and check the URL it looks like :<\/li><\/ul>\n\n\n\n<p><code>localhost:3000\/groups\/tech-lead<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Uniqueness feature of friendly_id:<ul><li>There is a case when two records have the same slug, at that time which record should you prefer?<\/li><li>But this problem is solved by friendly_id itself.<\/li><li>When two records have the same slug then friendly_id appends UUID to the generated slug to ensure the uniqueness of the record.<\/li><li>i.e.<\/li><\/ul><\/li><\/ul>\n\n\n\n<p><code>group1 = Group.create :name =&gt; \"Tech lead\"<\/code><br>\n<code>group2 = Group.create :name =&gt; \"Tech lead\"<\/code><br>\n<code>group1.friendly_id #=&gt; \"tech-lead\"<\/code><br>\n<code>group2.friendly_id #=&gt;\"tech-lead-f9f3789a-daec-4156-af1d-fab81aa16ee5\"<\/code><br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>You can also override &nbsp;FriendlyId::Slugged#should_generate_new_friendly_id? To control exactly when to generate new friendly_id.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>i.e.<\/li><\/ul>\n\n\n\n<p><code>class Group &lt; ApplicationRecord<\/code><br>\n<code>&nbsp;&nbsp; &nbsp; extend FriendlyId<\/code><br>\n<code>&nbsp;&nbsp; &nbsp; friendly_id :name, use: :slugged<\/code><br>\n<code>&nbsp;&nbsp;def should_generate_new_friendly_id?<\/code><br>\n<code>&nbsp;&nbsp;&nbsp;&nbsp;name_changed?<\/code><br>\n<code>&nbsp;&nbsp;end<\/code><br>\n<code>end<\/code><br>\n<\/p>\n\n\n\n<p>This is how you can add friendly_id to your models to make the user friendly and memorable URLs. and Also you can customize the methods of the FriendlyId module by extending it in your model.rb file.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/github.com\/norman\/friendly_id\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/norman\/friendly_id<\/a><\/li><li><a href=\"https:\/\/norman.github.io\/friendly_id\/file.Guide.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/norman.github.io\/friendly_id\/file.Guide.html<\/a><\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FriendlyId is a very good gem which allows you to&#8230;<\/p>\n","protected":false},"author":54,"featured_media":15002,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,10],"tags":[],"class_list":["post-14990","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>Slugs in Rails using Friendly ID Gem<\/title>\n<meta name=\"description\" content=\"Do you want to know how to implement slug in Ruby on Rails using FriendlyID RubyGem? Read this guide to know the steps that will help you in using slug in Rails with the help of FriendlyID.\" \/>\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\/slugs-in-rails-using-friendly-id-gem\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Slugs in Rails using Friendly ID Gem\" \/>\n<meta property=\"og:description\" content=\"Do you want to know how to implement slug in Ruby on Rails using FriendlyID RubyGem? Read this guide to know the steps that will help you in using slug in Rails with the help of FriendlyID.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/\" \/>\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=\"2021-01-25T13:54:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-09T10:26:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/id-gem-in-rails.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"852\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Harmisha Prajapati\" \/>\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=\"Harmisha Prajapati\" \/>\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\":\"Article\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/\"},\"author\":{\"name\":\"Harmisha Prajapati\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/679b29043917ad5a013fcadd40f0dde7\"},\"headline\":\"Slugs in Rails using Friendly ID Gem\",\"datePublished\":\"2021-01-25T13:54:10+00:00\",\"dateModified\":\"2021-09-09T10:26:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/\"},\"wordCount\":434,\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/id-gem-in-rails.jpg\",\"articleSection\":[\"Ruby on Rails\",\"Technology\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/\",\"name\":\"Slugs in Rails using Friendly ID Gem\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/id-gem-in-rails.jpg\",\"datePublished\":\"2021-01-25T13:54:10+00:00\",\"dateModified\":\"2021-09-09T10:26:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/679b29043917ad5a013fcadd40f0dde7\"},\"description\":\"Do you want to know how to implement slug in Ruby on Rails using FriendlyID RubyGem? Read this guide to know the steps that will help you in using slug in Rails with the help of FriendlyID.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#primaryimage\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/id-gem-in-rails.jpg\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/id-gem-in-rails.jpg\",\"width\":852,\"height\":420,\"caption\":\"Slugs in Rails using ID gem\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.botreetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Slugs in Rails using Friendly ID Gem\"}]},{\"@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\/679b29043917ad5a013fcadd40f0dde7\",\"name\":\"Harmisha Prajapati\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/harmisha-prajapati-150x150.png\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/harmisha-prajapati-150x150.png\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/harmisha-prajapati-150x150.png\",\"caption\":\"Harmisha Prajapati\"},\"description\":\"I am a Ruby on Rails Developer. I like to develop web applications using Ruby and Rails framework. Apart from that in my free time, I like to read novels.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Slugs in Rails using Friendly ID Gem","description":"Do you want to know how to implement slug in Ruby on Rails using FriendlyID RubyGem? Read this guide to know the steps that will help you in using slug in Rails with the help of FriendlyID.","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\/slugs-in-rails-using-friendly-id-gem\/","og_locale":"en_US","og_type":"article","og_title":"Slugs in Rails using Friendly ID Gem","og_description":"Do you want to know how to implement slug in Ruby on Rails using FriendlyID RubyGem? Read this guide to know the steps that will help you in using slug in Rails with the help of FriendlyID.","og_url":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/","og_site_name":"BoTree Technologies","article_publisher":"https:\/\/www.facebook.com\/BoTreeTechnologies\/","article_published_time":"2021-01-25T13:54:10+00:00","article_modified_time":"2021-09-09T10:26:28+00:00","og_image":[{"width":852,"height":420,"url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/id-gem-in-rails.jpg","type":"image\/jpeg"}],"author":"Harmisha Prajapati","twitter_card":"summary_large_image","twitter_creator":"@BoTreeTech","twitter_site":"@BoTreeTech","twitter_misc":{"Written by":"Harmisha Prajapati","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#article","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/"},"author":{"name":"Harmisha Prajapati","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/679b29043917ad5a013fcadd40f0dde7"},"headline":"Slugs in Rails using Friendly ID Gem","datePublished":"2021-01-25T13:54:10+00:00","dateModified":"2021-09-09T10:26:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/"},"wordCount":434,"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/id-gem-in-rails.jpg","articleSection":["Ruby on Rails","Technology"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/","url":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/","name":"Slugs in Rails using Friendly ID Gem","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#primaryimage"},"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/id-gem-in-rails.jpg","datePublished":"2021-01-25T13:54:10+00:00","dateModified":"2021-09-09T10:26:28+00:00","author":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/679b29043917ad5a013fcadd40f0dde7"},"description":"Do you want to know how to implement slug in Ruby on Rails using FriendlyID RubyGem? Read this guide to know the steps that will help you in using slug in Rails with the help of FriendlyID.","breadcrumb":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#primaryimage","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/id-gem-in-rails.jpg","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/id-gem-in-rails.jpg","width":852,"height":420,"caption":"Slugs in Rails using ID gem"},{"@type":"BreadcrumbList","@id":"https:\/\/www.botreetechnologies.com\/blog\/slugs-in-rails-using-friendly-id-gem\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.botreetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Slugs in Rails using Friendly ID Gem"}]},{"@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\/679b29043917ad5a013fcadd40f0dde7","name":"Harmisha Prajapati","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/harmisha-prajapati-150x150.png","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/harmisha-prajapati-150x150.png","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/harmisha-prajapati-150x150.png","caption":"Harmisha Prajapati"},"description":"I am a Ruby on Rails Developer. I like to develop web applications using Ruby and Rails framework. Apart from that in my free time, I like to read novels."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/14990","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\/54"}],"replies":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=14990"}],"version-history":[{"count":5,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/14990\/revisions"}],"predecessor-version":[{"id":16272,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/14990\/revisions\/16272"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media\/15002"}],"wp:attachment":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=14990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=14990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=14990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}