{"id":59561,"date":"2016-09-16T14:06:11","date_gmt":"2016-09-16T14:06:11","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=59561"},"modified":"2019-05-10T04:00:47","modified_gmt":"2019-05-10T04:00:47","slug":"creating-prestashop-module-webservice-api","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/","title":{"rendered":"Creating PrestaShop Module Webservice API"},"content":{"rendered":"<p><strong>Creating PrestaShop Module Webservice API:<\/strong> Prestashop has Webservice API for its core PrestaShop tables. You can activate PrestaShop Webservice API from tab Advanced Parameters -&gt; Webservice.<\/p>\n<ul>\n<li>Enable PrestaShop&#8217;s webservice from the Configuration panel<\/li>\n<li>Add a webservice key from the toolbar button, Generate key and check the checkbox for your resources<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>You can access the API from \u00a0this URL<\/p>\n<pre class=\"brush:php\">http::\/\/example.com\/api\/<\/pre>\n<p>&nbsp;<\/p>\n<p>Now, If you want to create an API for your PrestaShop modules. You need to add your module resources (classes names) in Prestashop Webservice list by overriding WebserviceRequest class getResources() function (dir \u00a0\/classes\/<\/p>\n<p>You need to add your module resources (classes names) in Prestashop Webservice list by <strong>overriding<\/strong> WebserviceRequest class getResources() function (dir \u00a0\/classes\/webservice\/WebserviceRequest.php).<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Note:<\/strong> Prestashop does not have any hook for this till V1.6.x.x. There is a hook now in PrestaShop V1.7 with name &#8216;addWebserviceResources&#8217;. See this <a href=\"https:\/\/github.com\/PrestaShop\/PrestaShop\/pull\/5531\" target=\"_blank\" rel=\"noopener noreferrer\">PR<\/a>\u00a0on Github.<\/p>\n<p>&nbsp;<\/p>\n<p>For PrestaShop V1.6.x.x, override \/classes\/webservice\/WebserviceRequest.php\u00a0 in your module override folder with this code. productcomment module is taken as an example below.<\/p>\n<pre class=\"brush:php\">public static function getResources()\r\n{\r\n        $resources = parent::getResources();\r\n        \/\/ if you do not have class for your table\r\n        $resources['myresource'] = array('description' =&gt; 'Manage My API', 'specific_management' =&gt; true); \/\/if do not have class in module\r\n        $resources['productcomments'] = array('description' =&gt; 'Created by Webkul', 'class' =&gt; 'ProductComment');\r\n        \/\/ Add this hook if you want more resource for other module\r\n        $mp_resource = Hook::exec('addMobikulResources', array('resources' =&gt; $resources), null, true, false);\r\n        if (is_array($mp_resource) &amp;&amp; count($mp_resource)) {\r\n            foreach ($mp_resource as $new_resources) {\r\n                if (is_array($new_resources) &amp;&amp; count($new_resources)) {\r\n                    $resources = array_merge($resources, $new_resources);\r\n                }\r\n            }\r\n        }\r\n\r\n        ksort($resources);\r\n        return $resources;\r\n}<\/pre>\n<p>In the above code,<\/p>\n<ul>\n<li>we have created a resource for class ProductComment for PrestaShop \u00a0productcomment\u00a0module,<\/li>\n<li>Every resource can be defined if your table has a class. You have to provide a class name in $resources var array.<\/li>\n<li>We have added a hook addMobikulResources, you can use it in other modules for adding more resources.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Now you can see the productcomment resource name in your Webservice tab page. Just check the permission for these resources and save.<\/p>\n<p><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/download-2.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-173945\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/download-2.png\" alt=\"download\" width=\"1300\" height=\"630\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/download-2.png 1300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/download-2-250x121.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/download-2-300x145.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/download-2-768x372.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/download-2-1200x582.png 1200w\" sizes=\"(max-width: 1300px) 100vw, 1300px\" loading=\"lazy\" \/><\/a><\/p>\n<p>If you visit now &#8211; http:\/\/example.com\/api\/productcomment\/ page, you can see the table XML details there.<\/p>\n<p>&nbsp;<\/p>\n<h3>Use\u00a0&#8216;specific_management&#8217; if you do not have any class<\/h3>\n<p>&nbsp;<\/p>\n<p>If you do not have a class for your table, you have to use &#8216;specific_management&#8217; =&gt; true,<\/p>\n<pre class=\"brush:php\">$resources['myresource'] = array('description' =&gt; 'Manage My API', 'specific_management' =&gt; true);<\/pre>\n<p>&nbsp;<\/p>\n<p>Now create a file in your module classes folder named: WebserviceSpecificManagement<strong>MyResource<\/strong>.php<\/p>\n<p>WebserviceSpecificManagement must be the prefix of this file name.<\/p>\n<p>Now the code in this file should be same as \/classes\/webservice\/WebserviceSpecificManagementSearch.php OR \/classes\/webservice\/WebserviceSpecificManagementImages.php (See these files) class with following details.<\/p>\n<ul>\n<li>implements WebserviceSpecificManagementInterface<\/li>\n<li>define four methods body : setObjectOutput, getObjectOutput, setWsObject, getWsObject<\/li>\n<li>in\u00a0manage() function you can write your required code<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Now you can access the API on URL :<\/p>\n<pre class=\"brush:php\">http:\/\/example.com\/api\/myresource\/\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Thanks,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating PrestaShop Module Webservice API: Prestashop has Webservice API for its core PrestaShop tables. You can activate PrestaShop Webservice API from tab Advanced Parameters -&gt; Webservice. Enable PrestaShop&#8217;s webservice from the Configuration panel Add a webservice key from the toolbar button, Generate key and check the checkbox for your resources &nbsp; You can access the <a href=\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":19,"featured_media":59536,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,209,1,1172],"tags":[292,2065,3294],"class_list":["post-59561","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-prestashop","category-uncategorized","category-web-service","tag-api","tag-prestashop","tag-webservice-api"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Creating PrestaShop Module Webservice API<\/title>\n<meta name=\"description\" content=\"Creating PrestaShop Module Webservice API by using PrestaShop core resources. Override the PrestaShop WebserviceRequest.php class getResources function.\" \/>\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\/creating-prestashop-module-webservice-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating PrestaShop Module Webservice API\" \/>\n<meta property=\"og:description\" content=\"Creating PrestaShop Module Webservice API by using PrestaShop core resources. Override the PrestaShop WebserviceRequest.php class getResources function.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/\" \/>\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=\"2016-09-16T14:06:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-10T04:00:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/Prestashop-Code-Snippet.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=\"Dheeraj Sharma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/dks295\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dheeraj Sharma\" \/>\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\/creating-prestashop-module-webservice-api\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/\"},\"author\":{\"name\":\"Dheeraj Sharma\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/a5f3da471d7cb80626232ba698343f6a\"},\"headline\":\"Creating PrestaShop Module Webservice API\",\"datePublished\":\"2016-09-16T14:06:11+00:00\",\"dateModified\":\"2019-05-10T04:00:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/\"},\"wordCount\":385,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/Prestashop-Code-Snippet.png\",\"keywords\":[\"api\",\"prestashop\",\"Webservice API\"],\"articleSection\":{\"0\":\"php\",\"1\":\"prestashop\",\"3\":\"web service\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/\",\"url\":\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/\",\"name\":\"Creating PrestaShop Module Webservice API\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/Prestashop-Code-Snippet.png\",\"datePublished\":\"2016-09-16T14:06:11+00:00\",\"dateModified\":\"2019-05-10T04:00:47+00:00\",\"description\":\"Creating PrestaShop Module Webservice API by using PrestaShop core resources. Override the PrestaShop WebserviceRequest.php class getResources function.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/Prestashop-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/Prestashop-Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating PrestaShop Module Webservice API\"}]},{\"@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\/a5f3da471d7cb80626232ba698343f6a\",\"name\":\"Dheeraj Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/95497c38ac4e669f4042d356b0397dce21d1a90688eddd87cfde8ff771c40041?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\/95497c38ac4e669f4042d356b0397dce21d1a90688eddd87cfde8ff771c40041?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Dheeraj Sharma\"},\"sameAs\":[\"http:\/\/webkul.com\",\"https:\/\/x.com\/https:\/\/twitter.com\/dks295\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/dheeraj\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating PrestaShop Module Webservice API","description":"Creating PrestaShop Module Webservice API by using PrestaShop core resources. Override the PrestaShop WebserviceRequest.php class getResources function.","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\/creating-prestashop-module-webservice-api\/","og_locale":"en_US","og_type":"article","og_title":"Creating PrestaShop Module Webservice API","og_description":"Creating PrestaShop Module Webservice API by using PrestaShop core resources. Override the PrestaShop WebserviceRequest.php class getResources function.","og_url":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-09-16T14:06:11+00:00","article_modified_time":"2019-05-10T04:00:47+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/Prestashop-Code-Snippet.png","type":"image\/png"}],"author":"Dheeraj Sharma","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/dks295","twitter_site":"@webkul","twitter_misc":{"Written by":"Dheeraj Sharma","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/"},"author":{"name":"Dheeraj Sharma","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/a5f3da471d7cb80626232ba698343f6a"},"headline":"Creating PrestaShop Module Webservice API","datePublished":"2016-09-16T14:06:11+00:00","dateModified":"2019-05-10T04:00:47+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/"},"wordCount":385,"commentCount":5,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/Prestashop-Code-Snippet.png","keywords":["api","prestashop","Webservice API"],"articleSection":{"0":"php","1":"prestashop","3":"web service"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/","url":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/","name":"Creating PrestaShop Module Webservice API","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/Prestashop-Code-Snippet.png","datePublished":"2016-09-16T14:06:11+00:00","dateModified":"2019-05-10T04:00:47+00:00","description":"Creating PrestaShop Module Webservice API by using PrestaShop core resources. Override the PrestaShop WebserviceRequest.php class getResources function.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/Prestashop-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/09\/Prestashop-Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating PrestaShop Module Webservice API"}]},{"@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\/a5f3da471d7cb80626232ba698343f6a","name":"Dheeraj Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/95497c38ac4e669f4042d356b0397dce21d1a90688eddd87cfde8ff771c40041?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\/95497c38ac4e669f4042d356b0397dce21d1a90688eddd87cfde8ff771c40041?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Dheeraj Sharma"},"sameAs":["http:\/\/webkul.com","https:\/\/x.com\/https:\/\/twitter.com\/dks295"],"url":"https:\/\/webkul.com\/blog\/author\/dheeraj\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/59561","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\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=59561"}],"version-history":[{"count":16,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/59561\/revisions"}],"predecessor-version":[{"id":173946,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/59561\/revisions\/173946"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/59536"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=59561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=59561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=59561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}