{"id":10729,"date":"2013-09-08T20:27:55","date_gmt":"2013-09-08T14:57:55","guid":{"rendered":"https:\/\/tothenewco.pro\/blog\/?p=10729"},"modified":"2013-09-08T21:01:52","modified_gmt":"2013-09-08T15:31:52","slug":"expressjs-route-parameter-pre-conditioning","status":"publish","type":"post","link":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/","title":{"rendered":"ExpressJS: Route Parameter Pre-conditioning"},"content":{"rendered":"<p><strong>Express JS<\/strong> is a very flexible yet powerful framework on top of exponentially growing Node JS Environment.<\/p>\n<p>Express makes it really easy to handle requests and how the server interacts with the outside world. It is very simple to get going and it has immense amounts of extremely useful features, <strong>Middleware<\/strong> is one of those features of express that stand out and are very useful.<\/p>\n<p>Essentially when express has a request it flows through many layers of functions called middleware, which can be used to manipulate those requests on our will.<\/p>\n<pre><code>app.configure(function() {\r\n    ...\r\n    ...\r\n    app.use(app.router);\r\n    app.use(express.static(__dirname + '\/public'));\r\n});<\/code><\/pre>\n<p>In the above partial snippet of express code, when a request comes, it flows through the routing functions because of the simple fact that <code>app.use(app.router)<\/code> is written before <code>express.static(...)<\/code> , if any of those routing functions do not fulfill the request, then that request falls through to the <code>express.static(...)<\/code> layer.<\/p>\n<p>Now in order to use these awesome middleware, lets have a look at the following route :-<\/p>\n<pre><code>app.get('range\/:min\/:max', function(req, res) {\r\n    var min = parseInt(req.params.min, 10);\r\n    var max = parseInt(req.params.max, 10);\r\n    ... \r\n    \/\/ do something with min and max\r\n    ...\r\n});<\/code><\/pre>\n<p>The above code is a simple <strong>get<\/strong> route, with route parameters namely <code>min<\/code> and <code>max<\/code>, now what if i have the same route params in many more routing functions, i have to do the same processing with min and max, within each of those functions. Given that the above example is too trivial so lets assume that its a big complex calculation, that equates to redundant code in the routing functions.<\/p>\n<p>So what can express do to help, well lets look at the re-written code below:-<\/p>\n<pre><code>app.param('min', function(req, res, next, min) {\r\n    req.min = parseInt(min, 10);\r\n    next();\r\n});\r\n\r\napp.param('max', function(req, res, next, max) {\r\n    req.max = parseInt(max, 10);\r\n    next();\r\n});\r\n\r\napp.get('range\/:min\/:max', function(req, res) {\r\n    var min = req.min; \/\/ It's that\r\n    var max = req.max; \/\/ simple\r\n    ... \r\n    \/\/ do something with min and max\r\n    ...\r\n});<\/code><\/pre>\n<p>Now let&#8217;s try and digest the above code, firstly param request are executed before the routing functions, thus the above <code>app.param(...)<\/code> methods execute before <code>app.get(...)<\/code>, now express passes the <code>next<\/code> function to every of these functions, which are important as they allow the request to fall through to the next function in the queue for that request. Express also passes the value of the parameter to the function itself, making it even simpler to use. By using this technique we can reduce redundant code from our routing functions.<\/p>\n<p>Okay, so that was one way of doing it.  Wait, there&#8217;s another way of doing it? Well, yes.<\/p>\n<p>lets say that you have to call a method in some of your routing functions, whose values are used in the routing function itself, generally what we do is call it at the top. But, express provides a better way of doing it.<\/p>\n<p>In express routing calls, we can pass as many functions as we like and they get executed in order, consider the following snippet:-<\/p>\n<pre><code>function doSomeProcessingOnSomething(req, res, next) {\r\n    req.operationResult = getResultOfSomeOperation();\r\n    next();\r\n});\r\n\r\napp.get('getMissileLaunchCodes', doSomeProcessingOnSomething,  function(req, res) {\r\n    var launchKey = req.operationResult;\r\n    ... \r\n    \/\/ do something with those launch codes, Maybe just destroy those missiles :)\r\n    ...\r\n});<\/code><\/pre>\n<p>Pretty basic express route, except that now it calls another function before actually doing its work. Pretty Sweet, huh?<br \/>\nwell those are some tips every user of express and node must know.<\/p>\n<p>And that brings us to the end. Hope you guys enjoyed it. <\/p>\n<p>Until next time, ciao!<\/p>\n<p>Thank You<br \/>\n<strong>Manoj Nama<\/strong><br \/>\n<em>Intelligrape Software<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Express JS is a very flexible yet powerful framework on top of exponentially growing Node JS Environment. Express makes it really easy to handle requests and how the server interacts with the outside world. It is very simple to get going and it has immense amounts of extremely useful features, Middleware is one of those [&hellip;]<\/p>\n","protected":false},"author":85,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":7,"footnotes":""},"categories":[1],"tags":[1129,1192,1124],"class_list":["post-10729","post","type-post","status-publish","format-standard","hentry","category-technology","tag-expressjs","tag-middleware","tag-node-js"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Express JS is a very flexible yet powerful framework on top of exponentially growing Node JS Environment. Express makes it really easy to handle requests and how the server interacts with the outside world. It is very simple to get going and it has immense amounts of extremely useful features, Middleware is one of those\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Manoj Nama\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/\" \/>\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=\"ExpressJS: Route Parameter Pre-conditioning | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Express JS is a very flexible yet powerful framework on top of exponentially growing Node JS Environment. Express makes it really easy to handle requests and how the server interacts with the outside world. It is very simple to get going and it has immense amounts of extremely useful features, Middleware is one of those\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/tothenewco.pro\/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=\"ExpressJS: Route Parameter Pre-conditioning | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Express JS is a very flexible yet powerful framework on top of exponentially growing Node JS Environment. Express makes it really easy to handle requests and how the server interacts with the outside world. It is very simple to get going and it has immense amounts of extremely useful features, Middleware is one of those\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/tothenewco.pro\/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\\\/expressjs-route-parameter-pre-conditioning\\\/#article\",\"name\":\"ExpressJS: Route Parameter Pre-conditioning | TO THE NEW Blog\",\"headline\":\"ExpressJS: Route Parameter Pre-conditioning\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manoj-nama\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2013-09-08T20:27:55+05:30\",\"dateModified\":\"2013-09-08T21:01:52+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/expressjs-route-parameter-pre-conditioning\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/expressjs-route-parameter-pre-conditioning\\\/#webpage\"},\"articleSection\":\"Technology, expressjs, middleware, node.js\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/expressjs-route-parameter-pre-conditioning\\\/#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\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/expressjs-route-parameter-pre-conditioning\\\/#listItem\",\"name\":\"ExpressJS: Route Parameter Pre-conditioning\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/expressjs-route-parameter-pre-conditioning\\\/#listItem\",\"position\":3,\"name\":\"ExpressJS: Route Parameter Pre-conditioning\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@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\\\/manoj-nama\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manoj-nama\\\/\",\"name\":\"Manoj Nama\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/expressjs-route-parameter-pre-conditioning\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/128d4570-a280-45f0-8bb7-9df5e544e392_488-Manoj-Nama-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Manoj Nama\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/expressjs-route-parameter-pre-conditioning\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/expressjs-route-parameter-pre-conditioning\\\/\",\"name\":\"ExpressJS: Route Parameter Pre-conditioning | TO THE NEW Blog\",\"description\":\"Express JS is a very flexible yet powerful framework on top of exponentially growing Node JS Environment. Express makes it really easy to handle requests and how the server interacts with the outside world. It is very simple to get going and it has immense amounts of extremely useful features, Middleware is one of those\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/expressjs-route-parameter-pre-conditioning\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manoj-nama\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manoj-nama\\\/#author\"},\"datePublished\":\"2013-09-08T20:27:55+05:30\",\"dateModified\":\"2013-09-08T21:01:52+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":"ExpressJS: Route Parameter Pre-conditioning | TO THE NEW Blog","description":"Express JS is a very flexible yet powerful framework on top of exponentially growing Node JS Environment. Express makes it really easy to handle requests and how the server interacts with the outside world. It is very simple to get going and it has immense amounts of extremely useful features, Middleware is one of those","canonical_url":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/#article","name":"ExpressJS: Route Parameter Pre-conditioning | TO THE NEW Blog","headline":"ExpressJS: Route Parameter Pre-conditioning","author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/manoj-nama\/#author"},"publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"},"datePublished":"2013-09-08T20:27:55+05:30","dateModified":"2013-09-08T21:01:52+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/#webpage"},"isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/#webpage"},"articleSection":"Technology, expressjs, middleware, node.js"},{"@type":"BreadcrumbList","@id":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/tothenewco.pro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/tothenewco.pro\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/#listItem","name":"ExpressJS: Route Parameter Pre-conditioning"},"previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/#listItem","position":3,"name":"ExpressJS: Route Parameter Pre-conditioning","previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/tothenewco.pro\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/tothenewco.pro\/blog\/"},{"@type":"Person","@id":"https:\/\/tothenewco.pro\/blog\/author\/manoj-nama\/#author","url":"https:\/\/tothenewco.pro\/blog\/author\/manoj-nama\/","name":"Manoj Nama","image":{"@type":"ImageObject","@id":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/128d4570-a280-45f0-8bb7-9df5e544e392_488-Manoj-Nama-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Manoj Nama"}},{"@type":"WebPage","@id":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/#webpage","url":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/","name":"ExpressJS: Route Parameter Pre-conditioning | TO THE NEW Blog","description":"Express JS is a very flexible yet powerful framework on top of exponentially growing Node JS Environment. Express makes it really easy to handle requests and how the server interacts with the outside world. It is very simple to get going and it has immense amounts of extremely useful features, Middleware is one of those","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/#breadcrumblist"},"author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/manoj-nama\/#author"},"creator":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/manoj-nama\/#author"},"datePublished":"2013-09-08T20:27:55+05:30","dateModified":"2013-09-08T21:01:52+05:30"},{"@type":"WebSite","@id":"https:\/\/tothenewco.pro\/blog\/#website","url":"https:\/\/tothenewco.pro\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"ExpressJS: Route Parameter Pre-conditioning | TO THE NEW Blog","og:description":"Express JS is a very flexible yet powerful framework on top of exponentially growing Node JS Environment. Express makes it really easy to handle requests and how the server interacts with the outside world. It is very simple to get going and it has immense amounts of extremely useful features, Middleware is one of those","og:url":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/","og:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"ExpressJS: Route Parameter Pre-conditioning | TO THE NEW Blog","twitter:description":"Express JS is a very flexible yet powerful framework on top of exponentially growing Node JS Environment. Express makes it really easy to handle requests and how the server interacts with the outside world. It is very simple to get going and it has immense amounts of extremely useful features, Middleware is one of those","twitter:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"10729","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-29 21:55:10","updated":"2024-02-29 09:32:21","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:\/\/tothenewco.pro\/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:\/\/tothenewco.pro\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tExpressJS: Route Parameter Pre-conditioning\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/tothenewco.pro\/blog"},{"label":"Technology","link":"https:\/\/tothenewco.pro\/blog\/category\/technology\/"},{"label":"ExpressJS: Route Parameter Pre-conditioning","link":"https:\/\/tothenewco.pro\/blog\/expressjs-route-parameter-pre-conditioning\/"}],"_links":{"self":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/10729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/users\/85"}],"replies":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/comments?post=10729"}],"version-history":[{"count":0,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/10729\/revisions"}],"wp:attachment":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/media?parent=10729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/categories?post=10729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/tags?post=10729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}