{"id":2156,"date":"2016-07-27T05:39:17","date_gmt":"2016-07-27T05:39:17","guid":{"rendered":"https:\/\/www.botreetechnologies.com\/blog\/?p=2156"},"modified":"2020-12-08T17:46:39","modified_gmt":"2020-12-08T12:16:39","slug":"rails-customize-and-improve-your-generators","status":"publish","type":"post","link":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/","title":{"rendered":"Rails\u200a-\u200aCustomize And Improve Your Generators"},"content":{"rendered":"\n<p>In our day to day web-application development, we use different Rails built in generators like,<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rails g controller users\nrails g model User\n...\n<\/pre>\n\n\n\n<p>Look how many files are generated when you create a controller.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"271\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/create-controller.png\" alt=\"rails customize   \" class=\"wp-image-13967\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/create-controller.png 716w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/create-controller-300x114.png 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/figure><\/div>\n\n\n\n<p>So basically, it will create<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>View helper file<\/li><li>javascript file in assets<\/li><li>stylesheet file in assets<\/li><li>test files in test directory<\/li><\/ol>\n\n\n\n<p>They have some default types and extensions. like,<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Script file is always&nbsp;<b>coffee script<\/b><\/li><li>Test cases is default to&nbsp;<b>Test::Unit.<\/b><\/li><li>CSS is default to&nbsp;<b>scss<\/b><\/li><li>HTML template is always<\/li><\/ol>\n\n\n\n<p>In this blog post, we are going to customise all these defaults and will get some overview of each generator&#8217;s customisation one by one.<\/p>\n\n\n\n<p>To customise this generators you have to make changes in&nbsp;<b>config\/application.rb.<\/b> For example, to use&nbsp;<b>js<\/b> as default javascript engine<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">config.generators.javascript_engine = :js<\/pre>\n\n\n\n<p>If there are multiple customisation options to override then you can use block like given below,<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">config.generators do |g|\n   g.stylesheets false\n   g.javascripts false\nend\n<\/pre>\n\n\n\n<p>Don&#8217;t worry about the code inside, we will go through different config options now.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">javascript_engine<\/h2>\n\n\n\n<p>You can use this to change the default type of JS file which is coffee-script by default. For example, if you don&#8217;t want to use coffeescript then add below line in your&nbsp;<b>application.rb<\/b><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">config.generators.javascript_engine = :js<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">test_framework<\/h3>\n\n\n\n<p>If you have Rspec already installed in your application and now you want to change the test framework to use Test::Unit without removing Rspec then just add below line.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">config.generators.test_framework :test_unit<\/pre>\n\n\n\n<p>If you don&#8217;t want to generate test files for views then just add&nbsp;<i><b>views: false<\/b><\/i> in above config<b>.<\/b><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">stylesheets<\/h3>\n\n\n\n<p>If you don&#8217;t want to create a stylesheet file everytime while creating a controller just set this value to false.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">config.generators.stylesheets false<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">javascripts<\/h3>\n\n\n\n<p>Same as we did for stylesheet, can turn off creating the JS files for each controller<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">config.generators.javascripts false<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">template_engine<\/h3>\n\n\n\n<p>You can customize your template engine for haml and slim instead of Ruby.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">config.generators.template_engine :erb<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">ORM<\/h3>\n\n\n\n<p>You can also change the ORM Mapping for active_record with some other options.<\/p>\n\n\n\n<p>config.generators.orm :active_record<\/p>\n\n\n\n<p>Here is how I customise my generators<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">config.generators do |g|\n  g.test_framework :rspec, views: false\n  g.javascript_engine :js \n  g.stylesheets false\nend\n<\/pre>\n\n\n\n<p>and if you try again generating controller with above config,<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"269\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/generating-controller.png\" alt=\"generating controller\" class=\"wp-image-13968\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/generating-controller.png 682w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/generating-controller-300x118.png 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/figure><\/div>\n\n\n\n<p>You can see that it creates Rspec files for test cases, normal JS file instead of coffee script and it also skips creating a CSS file.<\/p>\n\n\n\n<p>We can create our own generators in <a href=\"https:\/\/www.botreetechnologies.com\/hire-ruby-on-rails-developers\" target=\"_blank\" rel=\"noopener noreferrer\">Rails<\/a> using generators, will see in the next post. So stay in touch.!!<\/p>\n\n\n\n<p><a href=\"https:\/\/www.botreetechnologies.com\/ruby-on-rails-development\"><strong><b>Click here for more<\/b> details&#8230;<\/strong><\/a><\/p>\n\n\n\n<p>At<a href=\"https:\/\/www.botreetechnologies.com\/\"> BoTree Technologies<\/a>, we build enterprise applications with our RoR team of 25+ engineers.<\/p>\n\n\n\n<p>We also specialize in Python, RPA, AI, 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>In our day to day web-application development, we use different&#8230;<\/p>\n","protected":false},"author":4,"featured_media":13966,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,10],"tags":[],"class_list":["post-2156","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>Rails\u200a-\u200aCustomize And Improve Your Generators<\/title>\n<meta name=\"description\" content=\"Learn more about how to rails customize and improve your generators.In our day to day web-application development, we use different Rails built in generator\" \/>\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\/rails-customize-and-improve-your-generators\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rails\u200a-\u200aCustomize And Improve Your Generators\" \/>\n<meta property=\"og:description\" content=\"Learn more about how to rails customize and improve your generators.In our day to day web-application development, we use different Rails built in generator\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/\" \/>\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=\"2016-07-27T05:39:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-08T12:16:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2016\/07\/rail-customization.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"853\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nishant Upadhyay\" \/>\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=\"Nishant Upadhyay\" \/>\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\/rails-customize-and-improve-your-generators\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/\"},\"author\":{\"name\":\"Nishant Upadhyay\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/5af799914f08fa3d67f69755fdd41467\"},\"headline\":\"Rails\u200a-\u200aCustomize And Improve Your Generators\",\"datePublished\":\"2016-07-27T05:39:17+00:00\",\"dateModified\":\"2020-12-08T12:16:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/\"},\"wordCount\":432,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2016\/07\/rail-customization.jpeg\",\"articleSection\":[\"Ruby on Rails\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/\",\"name\":\"Rails\u200a-\u200aCustomize And Improve Your Generators\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2016\/07\/rail-customization.jpeg\",\"datePublished\":\"2016-07-27T05:39:17+00:00\",\"dateModified\":\"2020-12-08T12:16:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/5af799914f08fa3d67f69755fdd41467\"},\"description\":\"Learn more about how to rails customize and improve your generators.In our day to day web-application development, we use different Rails built in generator\",\"breadcrumb\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#primaryimage\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2016\/07\/rail-customization.jpeg\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2016\/07\/rail-customization.jpeg\",\"width\":1280,\"height\":853,\"caption\":\"rails customization\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.botreetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rails\u200a-\u200aCustomize And Improve Your Generators\"}]},{\"@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\/5af799914f08fa3d67f69755fdd41467\",\"name\":\"Nishant Upadhyay\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/nishant-upadhyay-150x150.png\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/nishant-upadhyay-150x150.png\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/nishant-upadhyay-150x150.png\",\"caption\":\"Nishant Upadhyay\"},\"description\":\"Nishant is Practice Lead of Ruby on Rails. He is a Blogger, Mentor, and Rubyst. He has expertise in Javascript as well. He is highly skilled in designing, developing and testing web applications. He enjoys being challenged and engaging with projects that require him to work outside his comfort and knowledge set.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Rails\u200a-\u200aCustomize And Improve Your Generators","description":"Learn more about how to rails customize and improve your generators.In our day to day web-application development, we use different Rails built in generator","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\/rails-customize-and-improve-your-generators\/","og_locale":"en_US","og_type":"article","og_title":"Rails\u200a-\u200aCustomize And Improve Your Generators","og_description":"Learn more about how to rails customize and improve your generators.In our day to day web-application development, we use different Rails built in generator","og_url":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/","og_site_name":"BoTree Technologies","article_publisher":"https:\/\/www.facebook.com\/BoTreeTechnologies\/","article_published_time":"2016-07-27T05:39:17+00:00","article_modified_time":"2020-12-08T12:16:39+00:00","og_image":[{"width":1280,"height":853,"url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2016\/07\/rail-customization.jpeg","type":"image\/jpeg"}],"author":"Nishant Upadhyay","twitter_card":"summary_large_image","twitter_creator":"@BoTreeTech","twitter_site":"@BoTreeTech","twitter_misc":{"Written by":"Nishant Upadhyay","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#article","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/"},"author":{"name":"Nishant Upadhyay","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/5af799914f08fa3d67f69755fdd41467"},"headline":"Rails\u200a-\u200aCustomize And Improve Your Generators","datePublished":"2016-07-27T05:39:17+00:00","dateModified":"2020-12-08T12:16:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/"},"wordCount":432,"commentCount":0,"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2016\/07\/rail-customization.jpeg","articleSection":["Ruby on Rails","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/","url":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/","name":"Rails\u200a-\u200aCustomize And Improve Your Generators","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#primaryimage"},"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2016\/07\/rail-customization.jpeg","datePublished":"2016-07-27T05:39:17+00:00","dateModified":"2020-12-08T12:16:39+00:00","author":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/5af799914f08fa3d67f69755fdd41467"},"description":"Learn more about how to rails customize and improve your generators.In our day to day web-application development, we use different Rails built in generator","breadcrumb":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#primaryimage","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2016\/07\/rail-customization.jpeg","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2016\/07\/rail-customization.jpeg","width":1280,"height":853,"caption":"rails customization"},{"@type":"BreadcrumbList","@id":"https:\/\/www.botreetechnologies.com\/blog\/rails-customize-and-improve-your-generators\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.botreetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Rails\u200a-\u200aCustomize And Improve Your Generators"}]},{"@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\/5af799914f08fa3d67f69755fdd41467","name":"Nishant Upadhyay","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/nishant-upadhyay-150x150.png","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/nishant-upadhyay-150x150.png","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/nishant-upadhyay-150x150.png","caption":"Nishant Upadhyay"},"description":"Nishant is Practice Lead of Ruby on Rails. He is a Blogger, Mentor, and Rubyst. He has expertise in Javascript as well. He is highly skilled in designing, developing and testing web applications. He enjoys being challenged and engaging with projects that require him to work outside his comfort and knowledge set."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/2156","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=2156"}],"version-history":[{"count":1,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/2156\/revisions"}],"predecessor-version":[{"id":13969,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/2156\/revisions\/13969"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media\/13966"}],"wp:attachment":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=2156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=2156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=2156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}