{"id":22966,"date":"2023-02-27T14:41:12","date_gmt":"2023-02-27T13:41:12","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=22966"},"modified":"2023-02-27T14:41:12","modified_gmt":"2023-02-27T13:41:12","slug":"shell-scripting-improve-dba-scripts-readability-using-j2-templates","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/","title":{"rendered":"SHELL SCRIPTING: improve DBA scripts readability using J2 templates"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">by Alexandre Nestor<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"tw-target-text\">Quering databases by using SQL in shell scripts can make the whole script unreadable. Very often the query is unredable too, due to the variable usage. This situation makes the script-debugging a pain. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Templating simplifies the script by taking out the SQL code from the source code file. J2 is ideally built for that. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s take a simple example: <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$&gt; cat sql_in_shell.sh\n\n#!\/bin\/bash\n. oraenv &lt;&lt;&lt; $1\n\ntable=$2\ncol1=$3\nval1=$4\n\nsqlplus -s \/ as sysdba &lt;&lt; EOF\nselect count(*)\nfrom $table\nwhere $col1=$val1\n;\nexit;\nEOF\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Ok, this is a simple one, but in real world the queries are much complicated, and variables too&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The execution produces the following output: <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$&gt; sql_in_shell.sh MYDBNAME v\\$instance instance_name \\&#039;MYDBNAME\\&#039;\n\n  COUNT(*)\n----------\n\t 1\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Doing it like this it is very difficult to find the real query executed by the script&#8230; <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s use J2 templates. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We put all templates in a <code>template<\/code> directory and generated sql files in the <code>onrun<\/code> directory.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: yaml; title: ; notranslate\" title=\"\">\n$&gt; cat templates\/qry.j2\nselect count(*)\nfrom {{ table }}\nwhere {{ col1 }}={{ val1 }}\n;\nexit;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">The script becomes: <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ cat .\/sql_in_shell.sh\n#!\/bin\/bash\n\n#. oraenv &lt;&lt;&lt; $1\n\necho &quot;$1&quot;\n\nj2_sql=&quot;qry.sql&quot;\nj2_templ=&quot;qry.j2&quot;\nexport table=$2\nexport col1=$3\nexport val1=$4\n\nj2 templates\/$j2_templ &gt; onrun\/$j2_sql\n\nsqlplus -s \/ as sysdba @onrun\/$j2_sql\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">The output is the same: <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$&gt; sql_in_shell.sh MYDBNAME v\\$instance instance_name \\&#039;MYDBNAME\\&#039;\n\n  COUNT(*)\n----------\n\t 1\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Now we have the executed query in the <code>onrun<\/code> directory: <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ cat onrun\/qry.sql\nselect count(*)\nfrom v$instance\nwhere instance_name=&#039;MYDBNAME&#039;\n;\nexit;\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-resources\">Resources<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">J2 client can be found here: <a href=\"https:\/\/github.com\/kolypto\/j2cli\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/kolypto\/j2cli<\/a>. The site provides also an excelent documentation. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ubuntu provides already deb packages and for rpm&#8217;s an additional repository must be added following: <a href=\"https:\/\/snapcraft.io\/install\/j2\/rhel\">https:\/\/snapcraft.io\/install\/j2\/rhel<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Templating brings shell coding in to a more modern world, liberating the code source of difficult to understand variables replacement. More than that, keeping all executed queries, is a best practice and makes the debugging much easier.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quering database&#8217;s by using SQL in shell scripts can make the whole script unreadable. Very oftent the query is unredable too, due to the variable usage. This situation make the script debugging a pain.<br \/>\nTemplating simplify the script by taking out from the soufce code file the SQL code. J2 is ideally built for that.<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4133,1320,59],"tags":[2777,644,1156],"class_list":["post-22966","post","type-post","status-publish","format-standard","category-database","category-devops","category-oracle","tag-jinja","tag-performance-tuning","tag-shell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.8 (Yoast SEO v28.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>SHELL SCRIPTING: improve DBA scripts readability using J2 templates - dbi services Blog<\/title>\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.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SHELL SCRIPTING: improve DBA scripts readability using J2 templates\" \/>\n<meta property=\"og:description\" content=\"Quering database&#039;s by using SQL in shell scripts can make the whole script unreadable. Very oftent the query is unredable too, due to the variable usage. This situation make the script debugging a pain. Templating simplify the script by taking out from the soufce code file the SQL code. J2 is ideally built for that.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-27T13:41:12+00:00\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\\\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\"},\"headline\":\"SHELL SCRIPTING: improve DBA scripts readability using J2 templates\",\"datePublished\":\"2023-02-27T13:41:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\\\/\"},\"wordCount\":229,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"keywords\":[\"jinja\",\"Performance Tuning\",\"Shell\"],\"articleSection\":[\"Database\",\"DevOps\",\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\\\/\",\"name\":\"SHELL SCRIPTING: improve DBA scripts readability using J2 templates - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2023-02-27T13:41:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SHELL SCRIPTING: improve DBA scripts readability using J2 templates\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"caption\":\"Oracle Team\"},\"description\":\"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/oracle-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"SHELL SCRIPTING: improve DBA scripts readability using J2 templates - dbi services Blog","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.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/","og_locale":"en_US","og_type":"article","og_title":"SHELL SCRIPTING: improve DBA scripts readability using J2 templates","og_description":"Quering database's by using SQL in shell scripts can make the whole script unreadable. Very oftent the query is unredable too, due to the variable usage. This situation make the script debugging a pain. Templating simplify the script by taking out from the soufce code file the SQL code. J2 is ideally built for that.","og_url":"https:\/\/www.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2023-02-27T13:41:12+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5"},"headline":"SHELL SCRIPTING: improve DBA scripts readability using J2 templates","datePublished":"2023-02-27T13:41:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/"},"wordCount":229,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"keywords":["jinja","Performance Tuning","Shell"],"articleSection":["Database","DevOps","Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/","url":"https:\/\/www.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/","name":"SHELL SCRIPTING: improve DBA scripts readability using J2 templates - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2023-02-27T13:41:12+00:00","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/shell-scripting-improve-dba-scripts-readability-using-j2-templates\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"SHELL SCRIPTING: improve DBA scripts readability using J2 templates"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","caption":"Oracle Team"},"description":"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.","url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/22966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=22966"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/22966\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=22966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=22966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=22966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}