{"id":71682,"date":"2017-01-16T10:10:27","date_gmt":"2017-01-16T10:10:27","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=71682"},"modified":"2017-01-16T10:53:34","modified_gmt":"2017-01-16T10:53:34","slug":"ajax-url-call-controller-using-front-controller","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/","title":{"rendered":"Ajax call on same controller while using front controller"},"content":{"rendered":"<p>Ajax call on same controller while using front controller to perform some custom action using jquery ajax in prestashop.<\/p>\n<p>We have seen many times in admin controller when they\u00a0call ajax request to perform some action, they refer the same admin controller in ajax url instead of different controller, so that they\u00a0don&#8217;t need to create any other controller to get response and perform any custom action on that.<\/p>\n<p>Below is the example code where they have used\u00a0same admin controller to\u00a0get the response from the call which triggered to get or perform some action.<\/p>\n<p>Example of admin controller &#8211;<\/p>\n<h2>Jquery Ajax Call<\/h2>\n<pre class=\"brush:js\">$.ajax({\r\n\turl : yourAdminController.php\r\n\ttype : 'POST',\r\n\tcache : false,\r\n\tdata : {\r\n\t\tajax : true,\r\n\t\tvariable_1 : var1,\r\n\t\tvariable_2 : var2,\r\n\t\taction : doSomeAction,\r\n\t},\r\n\tsuccess : function (result) {\r\n\t\t\/\/ your action code on result\r\n\t}\r\n});<\/pre>\n<h3>Admin Controller Code<\/h3>\n<pre class=\"brush:php\">&lt;?php\r\n\r\n\/**\r\n* 2010-2016 Webkul.\r\n*\r\n* NOTICE OF LICENSE\r\n*\r\n* All right is reserved,\r\n* Please go through this link for complete license : https:\/\/store.webkul.com\/license.html\r\n*\r\n* DISCLAIMER\r\n*\r\n* Do not edit or add to this file if you wish to upgrade this module to newer\r\n* versions in the future. If you wish to customize this module for your\r\n* needs please refer to https:\/\/store.webkul.com\/customisation-guidelines\/ for more information.\r\n*\r\n*  @author    Webkul IN &lt;support@webkul.com&gt;\r\n*  @copyright 2010-2016 Webkul IN\r\n*  @license   https:\/\/store.webkul.com\/license.html\r\n*\/\r\n\r\nclass YourAdminControllerController extends ModuleAdminController\r\n{\r\n    public function __construct()\r\n    {\r\n        $this-&gt;identifier = 'id';\r\n        parent::__construct();\r\n        $this-&gt;bootstrap = true;\r\n        \/\/ your own code\r\n    }\r\n\r\n    \/\/ your own functions\r\n    \/\/ your own functions\r\n    \/\/ your own functions\r\n    \/\/ your own functions\r\n\r\n\r\n    This function will get ajax call where pass two variables and a method name doSomeAction    \r\n    public function ajaxProcessDoSomeAction()\r\n    {\r\n    \tvar1 = Tools::getValue('variable_1');\r\n    \tvar2 = Tools::getValue('variable_2');\r\n\r\n    \t\/\/ your action code ....\r\n    }\r\n    \r\n}\r\n<\/pre>\n<p>In Prestashop, we can follow this processor\u00a0same in our front controller as well.<\/p>\n<p>Here, only different is <strong>displayAjax<\/strong> and <strong>ajaxProcess<\/strong>.<\/p>\n<ul>\n<li>In Admin Controller\u00a0&#8211;\u00a0we need to prefix &#8220;<strong>ajaxProcesss&#8221;\u00a0<\/strong>with our action function which we have passed in our ajax call ,\u00a0while getting ajax call.<\/li>\n<li>In front controller &#8211; we need to prefix &#8220;<strong>displayAjax&#8221;<\/strong>\u00a0with our action function which we have passed in our ajax call, while getting ajax call.<\/li>\n<\/ul>\n<p>See the example code for front controller<\/p>\n<h2>jQuery Ajax Call<\/h2>\n<pre class=\"brush:js\">$.ajax({\r\n\turl : yourFrontController.php\r\n\ttype : 'POST',\r\n\tcache : false,\r\n\tdata : {\r\n\t\tajax : true,\r\n\t\tvariable_1 : var1,\r\n\t\tvariable_2 : var2,\r\n\t\taction : doSomeAction,\r\n\t},\r\n\tsuccess : function (result) {\r\n\t\t\/\/ your action code on result\r\n\t}\r\n});<\/pre>\n<p>Front Controller Code &#8211;<\/p>\n<pre class=\"brush:php\">&lt;?php\r\n\r\n\/**\r\n* 2010-2016 Webkul.\r\n*\r\n* NOTICE OF LICENSE\r\n*\r\n* All right is reserved,\r\n* Please go through this link for complete license : https:\/\/store.webkul.com\/license.html\r\n*\r\n* DISCLAIMER\r\n*\r\n* Do not edit or add to this file if you wish to upgrade this module to newer\r\n* versions in the future. If you wish to customize this module for your\r\n* needs please refer to https:\/\/store.webkul.com\/customisation-guidelines\/ for more information.\r\n*\r\n*  @author    Webkul IN &lt;support@webkul.com&gt;\r\n*  @copyright 2010-2016 Webkul IN\r\n*  @license   https:\/\/store.webkul.com\/license.html\r\n*\/\r\n\r\nclass ModuleNameYourFrontControllerFrontController extends ModuleFrontController\r\n{\r\n    public function initContent()\r\n    {\r\n    \tparent::initContent();\r\n    \t\/\/ your own code\r\n    }\r\n\r\n    \/\/ your own functions\r\n    \/\/ your own functions\r\n    \/\/ your own functions\r\n    \/\/ your own functions\r\n\r\n\r\n    This function will get ajax call where pass two variables and a method name doSomeAction    \r\n    public function displayAjaxDoSomeAction()\r\n    {\r\n    \tvar1 = Tools::getValue('variable_1');\r\n    \tvar2 = Tools::getValue('variable_2');\r\n\r\n    \t\/\/ your action code ....\r\n    }\r\n    \r\n}<\/pre>\n<p>In\u00a0this way, we can get ajax call on our same controller either on admin side or front side. It will save your extra controller code as well as make your code more readable for each developer.<\/p>\n<p>If there are something not understandable by this post then do comment below. We will surely assist on that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ajax call on same controller while using front controller to perform some custom action using jquery ajax in prestashop. We have seen many times in admin controller when they\u00a0call ajax request to perform some action, they refer the same admin controller in ajax url instead of different controller, so that they\u00a0don&#8217;t need to create any <a href=\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":81,"featured_media":63571,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209],"tags":[],"class_list":["post-71682","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-prestashop"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ajax call on same controller while using front controller - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Ajax call on same controller while using front controller to perform some custom action using jquery ajax in prestashop. We have seen many times in admi\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ajax call on same controller while using front controller - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Ajax call on same controller while using front controller to perform some custom action using jquery ajax in prestashop. We have seen many times in admi\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-16T10:10:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-01-16T10:53:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/Prestashop-Code-Snippet-3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Deepak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Deepak\" \/>\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:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/\"},\"author\":{\"name\":\"Deepak\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/06a72f75a5d335e9751297fb9839ef68\"},\"headline\":\"Ajax call on same controller while using front controller\",\"datePublished\":\"2017-01-16T10:10:27+00:00\",\"dateModified\":\"2017-01-16T10:53:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/\"},\"wordCount\":257,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/Prestashop-Code-Snippet-3.png\",\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/\",\"url\":\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/\",\"name\":\"Ajax call on same controller while using front controller - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/Prestashop-Code-Snippet-3.png\",\"datePublished\":\"2017-01-16T10:10:27+00:00\",\"dateModified\":\"2017-01-16T10:53:34+00:00\",\"description\":\"Ajax call on same controller while using front controller to perform some custom action using jquery ajax in prestashop. We have seen many times in admi\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/Prestashop-Code-Snippet-3.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/Prestashop-Code-Snippet-3.png\",\"width\":825,\"height\":260,\"caption\":\"ajax call\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ajax call on same controller while using front controller\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/06a72f75a5d335e9751297fb9839ef68\",\"name\":\"Deepak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/067dbf448c072fa8c6cb14b2e26949dc29c46c534e586b915b56f39c95cb2b95?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/067dbf448c072fa8c6cb14b2e26949dc29c46c534e586b915b56f39c95cb2b95?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Deepak\"},\"description\":\"I love the web. Coding is my passion and love the learn new technologies.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/deepak037\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ajax call on same controller while using front controller - Webkul Blog","description":"Ajax call on same controller while using front controller to perform some custom action using jquery ajax in prestashop. We have seen many times in admi","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:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/","og_locale":"en_US","og_type":"article","og_title":"Ajax call on same controller while using front controller - Webkul Blog","og_description":"Ajax call on same controller while using front controller to perform some custom action using jquery ajax in prestashop. We have seen many times in admi","og_url":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-01-16T10:10:27+00:00","article_modified_time":"2017-01-16T10:53:34+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/Prestashop-Code-Snippet-3.png","type":"image\/png"}],"author":"Deepak","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Deepak","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/"},"author":{"name":"Deepak","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/06a72f75a5d335e9751297fb9839ef68"},"headline":"Ajax call on same controller while using front controller","datePublished":"2017-01-16T10:10:27+00:00","dateModified":"2017-01-16T10:53:34+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/"},"wordCount":257,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/Prestashop-Code-Snippet-3.png","articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/","url":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/","name":"Ajax call on same controller while using front controller - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/Prestashop-Code-Snippet-3.png","datePublished":"2017-01-16T10:10:27+00:00","dateModified":"2017-01-16T10:53:34+00:00","description":"Ajax call on same controller while using front controller to perform some custom action using jquery ajax in prestashop. We have seen many times in admi","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/Prestashop-Code-Snippet-3.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/Prestashop-Code-Snippet-3.png","width":825,"height":260,"caption":"ajax call"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/ajax-url-call-controller-using-front-controller\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Ajax call on same controller while using front controller"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/06a72f75a5d335e9751297fb9839ef68","name":"Deepak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/067dbf448c072fa8c6cb14b2e26949dc29c46c534e586b915b56f39c95cb2b95?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/067dbf448c072fa8c6cb14b2e26949dc29c46c534e586b915b56f39c95cb2b95?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Deepak"},"description":"I love the web. Coding is my passion and love the learn new technologies.","url":"https:\/\/webkul.com\/blog\/author\/deepak037\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/71682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=71682"}],"version-history":[{"count":13,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/71682\/revisions"}],"predecessor-version":[{"id":71697,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/71682\/revisions\/71697"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/63571"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=71682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=71682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=71682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}