{"id":10498,"date":"2014-04-09T14:50:55","date_gmt":"2014-04-09T09:20:55","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=10498"},"modified":"2016-12-19T15:31:55","modified_gmt":"2016-12-19T10:01:55","slug":"customizing-url-formats-in-grails","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/","title":{"rendered":"Customizing URL Formats in Grails (Making your URLs case insensitive)"},"content":{"rendered":"<p>When I started working on Grails I quickly noticed one caveat in its URL patterns. I wonder why on the Earth anybody would want such camel casing in URLs. Misreading the case sensitive nature of a Grails app URL can lead to broken links and 404 errors. That means you need to be careful when playing with how your URLs look like.<\/p>\n<p>For example:<\/p>\n<blockquote><p>http:\/\/localhost:8080\/myapp\/someLong\/someAction<\/p><\/blockquote>\n<p>works perfectly fine.<\/p>\n<p>But when I entered following URL patterns<\/p>\n<blockquote><p>http:\/\/localhost:8080\/myapp\/somelong\/someaction<br \/>\nor<\/p>\n<p>http:\/\/localhost:8080\/myapp\/SomeLong\/SOMEACTION<\/p><\/blockquote>\n<p>I get a <strong>HTTP Status 404<\/strong> that is <strong>&#8220;Page Not found&#8221;<\/strong> message.<\/p>\n<p>It does not matter what part I write in lower case it will just throw same HTTP Status code.<\/p>\n<p>The culprit here is routing engine of Grails. It&#8217;s configured to use the default settings. And how does Grails do that? Simply by implementing the <strong>grails.web.UrlConverter<\/strong> interface in a class named <strong>grails.web.CamelCaseUrlConverter<\/strong>. But as always this is just a convention not a requirement. So I went ahead and changed this by plugging in a new behavior or converter.<\/p>\n<p>So I created a new converter named <strong>LowerCaseUrlConverter<\/strong>. The name need not contain <strong>UrlConverter<\/strong> suffix, it&#8217;s here just to tell us that it implements some<br \/>\n<strong>UrlConverter<\/strong>. So here is the code:<\/p>\n<p>[sourcecode language=&#8221;java&#8221;]<br \/>\npackage com.myapp.utils<\/p>\n<p>import grails.web.UrlConverter<\/p>\n<p>class LowerCaseUrlConverter implements UrlConverter {<\/p>\n<p>    @Override<br \/>\n    String toUrlElement(String propertyOrClassName) {<br \/>\n        if (propertyOrClassName) {<br \/>\n            \/\/ If there is some class name or method name in url then convert it to lowercase.<br \/>\n            propertyOrClassName.toLowerCase()<br \/>\n        } else {<br \/>\n            \/\/ Else return default name.<br \/>\n            propertyOrClassName<br \/>\n        }<br \/>\n    }<br \/>\n}<br \/>\n[\/sourcecode]<\/p>\n<p>Now put this class in <strong>src\/groovy<\/strong> folder because it&#8217;s a Groovy file named <strong>LowerCaseUrlConverter.groovy<\/strong>.<\/p>\n<p>Next is to configure this bean so that Grails knows it needs to use new implementation of <strong>grails.web.UrlConverter<\/strong>, so that other parts of Grails can generate<br \/>\nlowercase URLs from its <strong>g.createLink()<\/strong> and <strong>redirect()<\/strong> and other methods.<\/p>\n<p>So open up <strong>grails-app\/conf\/spring\/resources.groovy<\/strong> file, and put inside <strong>beans<\/strong> closure this line:<\/p>\n<p>[sourcecode language=&#8221;java&#8221;]<\/p>\n<p>&amp;amp;quot;${grails.web.UrlConverter.BEAN_NAME}&amp;amp;quot; (com.myapp.utils.LowerCaseUrlConverter)<\/p>\n<p>[\/sourcecode]<\/p>\n<p>And that&#8217;s all we need to do. Now we are good to go with all lowercase URLs<\/p>\n<blockquote><p>http:\/\/localhost:8080\/myapp\/somelong\/someaction<\/p><\/blockquote>\n<p>You can even check it with some more combinations like:<\/p>\n<blockquote><p>http:\/\/localhost:8080\/myapp\/Somelong\/Someaction<br \/>\nhttp:\/\/localhost:8080\/myapp\/someLong\/someAction<\/p><\/blockquote>\n<p>or if you are crazy enough and gone nuts you can also try this:<\/p>\n<blockquote><p>http:\/\/localhost:8080\/myapp\/SoMeLoNg\/sOmEaCtIoN<\/p><\/blockquote>\n<p>One last thing.<br \/>\nI didn&#8217;t tell you about one more class that Grails has up its sleeves. And that&#8217;s the <strong>grails.web.HyphenatedUrlConverter<\/strong> class. You can guess by name what it does.<\/p>\n<p>One word of caution: You can&#8217;t have more than one implementation of <strong>URLConverter<\/strong> in <strong>grails-app\/conf\/spring\/resources.groovy<\/strong> file. However default one will always work regardless if you provide your implementation or not!<\/p>\n<p>Now I feel safer with my URLs&#8230; \ud83d\ude09<\/p>\n<p>Manvendra Singh<\/p>\n<p>My LinkedIn<\/p>\n<p>@Manvendra_SK<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I started working on Grails I quickly noticed one caveat in its URL patterns. I wonder why on the Earth anybody would want such camel casing in URLs. Misreading the case sensitive nature of a Grails app URL can lead to broken links and 404 errors. That means you need to be careful when [&hellip;]<\/p>\n","protected":false},"author":70,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":8,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-10498","post","type-post","status-publish","format-standard","hentry","category-grails"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"When I started working on Grails I quickly noticed one caveat in its URL patterns. I wonder why on the Earth anybody would want such camel casing in URLs. Misreading the case sensitive nature of a Grails app URL can lead to broken links and 404 errors. That means you need to be careful when\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Manvendra Pratap Singh\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Customizing URL Formats in Grails (Making your URLs case insensitive) | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"When I started working on Grails I quickly noticed one caveat in its URL patterns. I wonder why on the Earth anybody would want such camel casing in URLs. Misreading the case sensitive nature of a Grails app URL can lead to broken links and 404 errors. That means you need to be careful when\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Customizing URL Formats in Grails (Making your URLs case insensitive) | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"When I started working on Grails I quickly noticed one caveat in its URL patterns. I wonder why on the Earth anybody would want such camel casing in URLs. Misreading the case sensitive nature of a Grails app URL can lead to broken links and 404 errors. That means you need to be careful when\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/customizing-url-formats-in-grails\\\/#article\",\"name\":\"Customizing URL Formats in Grails (Making your URLs case insensitive) | TO THE NEW Blog\",\"headline\":\"Customizing URL Formats in Grails (Making your URLs case insensitive)\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manvendra\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2014-04-09T14:50:55+05:30\",\"dateModified\":\"2016-12-19T15:31:55+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/customizing-url-formats-in-grails\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/customizing-url-formats-in-grails\\\/#webpage\"},\"articleSection\":\"Grails\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/customizing-url-formats-in-grails\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"position\":2,\"name\":\"Grails\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/customizing-url-formats-in-grails\\\/#listItem\",\"name\":\"Customizing URL Formats in Grails (Making your URLs case insensitive)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/customizing-url-formats-in-grails\\\/#listItem\",\"position\":3,\"name\":\"Customizing URL Formats in Grails (Making your URLs case insensitive)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manvendra\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manvendra\\\/\",\"name\":\"Manvendra Pratap Singh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/customizing-url-formats-in-grails\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/404eb926-c5a3-4c85-b9ee-6149c0a4a51a_Manvendra-pratap-singh-Profile-Pitcure.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Manvendra Pratap Singh\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/customizing-url-formats-in-grails\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/customizing-url-formats-in-grails\\\/\",\"name\":\"Customizing URL Formats in Grails (Making your URLs case insensitive) | TO THE NEW Blog\",\"description\":\"When I started working on Grails I quickly noticed one caveat in its URL patterns. I wonder why on the Earth anybody would want such camel casing in URLs. Misreading the case sensitive nature of a Grails app URL can lead to broken links and 404 errors. That means you need to be careful when\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/customizing-url-formats-in-grails\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manvendra\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manvendra\\\/#author\"},\"datePublished\":\"2014-04-09T14:50:55+05:30\",\"dateModified\":\"2016-12-19T15:31:55+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Customizing URL Formats in Grails (Making your URLs case insensitive) | TO THE NEW Blog","description":"When I started working on Grails I quickly noticed one caveat in its URL patterns. I wonder why on the Earth anybody would want such camel casing in URLs. Misreading the case sensitive nature of a Grails app URL can lead to broken links and 404 errors. That means you need to be careful when","canonical_url":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/#article","name":"Customizing URL Formats in Grails (Making your URLs case insensitive) | TO THE NEW Blog","headline":"Customizing URL Formats in Grails (Making your URLs case insensitive)","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/manvendra\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2014-04-09T14:50:55+05:30","dateModified":"2016-12-19T15:31:55+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/#webpage"},"articleSection":"Grails"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/grails\/#listItem","name":"Grails"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/grails\/#listItem","position":2,"name":"Grails","item":"https:\/\/www.tothenew.com\/blog\/category\/grails\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/#listItem","name":"Customizing URL Formats in Grails (Making your URLs case insensitive)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/#listItem","position":3,"name":"Customizing URL Formats in Grails (Making your URLs case insensitive)","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/grails\/#listItem","name":"Grails"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/manvendra\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/manvendra\/","name":"Manvendra Pratap Singh","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/404eb926-c5a3-4c85-b9ee-6149c0a4a51a_Manvendra-pratap-singh-Profile-Pitcure.jpeg","width":96,"height":96,"caption":"Manvendra Pratap Singh"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/","name":"Customizing URL Formats in Grails (Making your URLs case insensitive) | TO THE NEW Blog","description":"When I started working on Grails I quickly noticed one caveat in its URL patterns. I wonder why on the Earth anybody would want such camel casing in URLs. Misreading the case sensitive nature of a Grails app URL can lead to broken links and 404 errors. That means you need to be careful when","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/manvendra\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/manvendra\/#author"},"datePublished":"2014-04-09T14:50:55+05:30","dateModified":"2016-12-19T15:31:55+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Customizing URL Formats in Grails (Making your URLs case insensitive) | TO THE NEW Blog","og:description":"When I started working on Grails I quickly noticed one caveat in its URL patterns. I wonder why on the Earth anybody would want such camel casing in URLs. Misreading the case sensitive nature of a Grails app URL can lead to broken links and 404 errors. That means you need to be careful when","og:url":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Customizing URL Formats in Grails (Making your URLs case insensitive) | TO THE NEW Blog","twitter:description":"When I started working on Grails I quickly noticed one caveat in its URL patterns. I wonder why on the Earth anybody would want such camel casing in URLs. Misreading the case sensitive nature of a Grails app URL can lead to broken links and 404 errors. That means you need to be careful when","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"10498","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-30 08:08:02","updated":"2024-02-29 10:52:24","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/grails\/\" title=\"Grails\">Grails<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCustomizing URL Formats in Grails (Making your URLs case insensitive)\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Grails","link":"https:\/\/www.tothenew.com\/blog\/category\/grails\/"},{"label":"Customizing URL Formats in Grails (Making your URLs case insensitive)","link":"https:\/\/www.tothenew.com\/blog\/customizing-url-formats-in-grails\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/10498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=10498"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/10498\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=10498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=10498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=10498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}