{"id":59099,"date":"2023-10-20T14:19:17","date_gmt":"2023-10-20T08:49:17","guid":{"rendered":"https:\/\/www.tothenew.com\/blog\/?p=59099"},"modified":"2023-11-05T14:24:21","modified_gmt":"2023-11-05T08:54:21","slug":"introduction-of-drupal-jsonapi","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/","title":{"rendered":"Introduction of Drupal JSON:API"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">JSON API is a standardized specification for building APIs in JSON format. It aims to simplify and streamline the process of creating and consuming APIs by providing a clear and consistent structure for data exchange. JSON API is a core module to access Drupal&#8217;s data structures, i.e., entity types, bundles, fields, etc. It supports the ability to build decoupled applications or integrate Drupal with other systems.<\/span><\/p>\n<h3><b>Enabling JSON API<\/p>\n<p><\/b><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-59081 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/10\/pasted-image-0-1024x420.png\" alt=\"Blog image\" width=\"625\" height=\"256\" srcset=\"https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-1024x420.png 1024w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-300x123.png 300w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-768x315.png 768w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-1536x629.png 1536w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-624x256.png 624w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0.png 1811w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/h3>\n<p><span style=\"font-weight: 400;\">Visit: \/admin\/config\/services\/jsonapi and check the &#8220;Accept all JSON:API create, read, update, and delete operations.&#8221; option to allow POST, PATCH, and DELETE operations.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-59083 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/10\/pasted-image-0-1-1024x229.png\" alt=\"Blog image\" width=\"625\" height=\"140\" srcset=\"https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-1-1024x229.png 1024w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-1-300x67.png 300w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-1-768x172.png 768w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-1-1536x343.png 1536w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-1-624x140.png 624w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-1.png 1847w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<h3><b>Understanding JSON API<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Every resource in JSON:API must have a globally unique <\/span><span style=\"font-weight: 400;\">type of<\/span><span style=\"font-weight: 400;\"> property. The Drupal JSON:API implementation derives this type property from the entity type machine name and bundle machine name. For example, articles, pages, and users are given the types of node<\/span><span style=\"font-weight: 400;\">&#8212;<\/span><span style=\"font-weight: 400;\">article, node<\/span><span style=\"font-weight: 400;\">&#8212;<\/span><span style=\"font-weight: 400;\">pages, and user<\/span><span style=\"font-weight: 400;\">&#8212;<\/span><span style=\"font-weight: 400;\">user, respectively.<\/span><\/p>\n<h3><b>Example of JSON:API URL structure<\/b><\/h3>\n<p><em><span style=\"font-weight: 400;\">GET | POST: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/jsonapi\/node\/article<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400;\">PATCH | DELETE:\u00a0 \/jsonapi\/node\/article\/{uuid}<\/span><\/em><\/p>\n<p><strong>JSON: API accepts the following HTTP methods<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">GET &#8211; Retrieve data, which can be a collection of resources or an individual resource<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">POST &#8211; Create a new resource<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">PATCH &#8211; Update an existing resource<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">DELETE &#8211; Remove an existing resource<\/span><\/li>\n<\/ul>\n<p><b>GET requests:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The following headers are required on all Get requests.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Accept: application\/vnd.api+json<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Authorization:Basic VOxwmuUua_0<\/span><\/li>\n<\/ul>\n<p><b><br \/>\n<\/b><span style=\"font-weight: 400;\">To get JSON:API object of a single article node, including attributes, relationships, and links.<\/span><b><br \/>\n<\/b><span style=\"font-weight: 400;\">URL: <\/span><a href=\"http:\/\/example.com\/jsonapi\/node\/article\/%7B%7Barticle_uuid\"><span style=\"font-weight: 400;\">http:\/\/example.com\/jsonapi\/node\/article\/{{article_uuid<\/span><\/a><span style=\"font-weight: 400;\">}}<\/span><b><br \/>\n<\/b><b><br \/>\n<\/b><strong>Note: JSON Api works with uuid, not nid. You can find uuid of an entity using the Devel module.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-59087 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/10\/pasted-image-0-2-1024x615.png\" alt=\"Blog image\" width=\"625\" height=\"375\" srcset=\"https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-2-1024x615.png 1024w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-2-300x180.png 300w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-2-768x462.png 768w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-2-624x375.png 624w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-2.png 1303w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<h3><strong>Response<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">HTTP 200 response. The response body contains the JSON:API object of a single article node, including attributes, relationships, and links.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>Post requests<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The following headers are <\/span><b>required<\/b><span style=\"font-weight: 400;\"> on all POST request to get a proper JSON:API request and response.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Accept: application\/vnd.api+json<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Content-Type:application\/vnd.api+json<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Authorization:Basic VOxwmuUua_0<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Note: You can get access token by \/session\/token.<\/span><\/p>\n<h3><strong>Basic POST request<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">URL: http:\/\/example.com\/jsonapi\/node\/article<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-59089 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/10\/pasted-image-0-3-1024x615.png\" alt=\"Blog image\" width=\"625\" height=\"375\" srcset=\"https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-3-1024x615.png 1024w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-3-300x180.png 300w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-3-768x462.png 768w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-3-624x375.png 624w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-3.png 1303w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<h3><strong>Response<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">HTTP 201 (Created) response. The response body contains the JsonApi response of the created entity.<\/span><\/p>\n<p><b>Delete Request:<\/b><b><br \/>\n<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The following headers are used for All DELETE request :<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Content-Type:application\/vnd.api+json<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Authorization:Basic VOxwmuUua_0<\/span><\/li>\n<\/ul>\n<h3><strong>Basic DELETE request<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">URL: <\/span><a href=\"http:\/\/example.com\/jsonapi\/node\/article\/%7B%7Barticle_uuid\"><span style=\"font-weight: 400;\">http<\/span><b>:<\/b><span style=\"font-weight: 400;\">\/\/example.com\/jsonapi\/node\/article\/{{article_uuid<\/span><\/a><span style=\"font-weight: 400;\">}}<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-59090 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/10\/pasted-image-0-4-1024x514.png\" alt=\"Blog image\" width=\"625\" height=\"314\" srcset=\"https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-4-1024x514.png 1024w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-4-300x151.png 300w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-4-768x385.png 768w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-4-624x313.png 624w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-4.png 1309w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<h3><strong>Response<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">HTTP 204 (No content) response. Empty response body.<\/span><\/p>\n<p><b>Patch Request<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The following header is needed for all patch requests:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Accept: application\/vnd.api+json<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Content-Type:application\/vnd.api+json<\/span><\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Authorization:Basic VALUE<\/span><\/li>\n<\/ul>\n<h2><span style=\"font-weight: 400;\">Basic PATCH request<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">URL: <\/span><a href=\"http:\/\/example.com\/jsonapi\/node\/article\/%7B%7Barticle_uuid\"><span style=\"font-weight: 400;\">http:\/\/example.com\/jsonapi\/node\/article\/{{article_uuid<\/span><\/a><span style=\"font-weight: 400;\">}}<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-59091 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/10\/pasted-image-0-5-1024x620.png\" alt=\"Blog image\" width=\"625\" height=\"378\" srcset=\"https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-5-1024x620.png 1024w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-5-300x182.png 300w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-5-768x465.png 768w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-5-624x378.png 624w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2023\/10\/pasted-image-0-5.png 1306w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<h3><strong>Response<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">HTTP 200 response. The response body with the JsonApi response of the updated entity.<\/span><\/p>\n<h3><b>Features of JSON API<\/b><\/h3>\n<p><b>Automatic Serialization<\/b><span style=\"font-weight: 400;\">: JSON API handles the serialization of data for you. When you request data from Drupal, it&#8217;s automatically transformed into a JSON API-compliant format, reducing the need for custom serialization code.<\/span><\/p>\n<p><b>Pagination and Sorting<\/b><span style=\"font-weight: 400;\">: JSON API supports pagination and sorting out of the box. This is particularly useful for large datasets, ensuring that clients can retrieve data efficiently.<\/span><\/p>\n<p><b>Relationships<\/b><span style=\"font-weight: 400;\">: JSON API allows you to retrieve related resources in a single request, reducing the number of API calls needed to fetch interconnected data.<\/span><\/p>\n<p><b>Filtering and Querying<\/b><span style=\"font-weight: 400;\">: You can filter and query Drupal resources using query parameters in the URL, allowing you to request only the data you need.<\/span><\/p>\n<h3><b>Benefits of Using JSON API in Drupal 10<\/b><\/h3>\n<p><span style=\"font-weight: 400;\"><strong>1.<\/strong> <\/span><b>Simplified Development<\/b><span style=\"font-weight: 400;\">: JSON API simplifies the development of web applications by providing a standardized way to interact with Drupal&#8217;s data<\/span><\/p>\n<p><b>2. Efficiency<\/b><span style=\"font-weight: 400;\">: With automatic serialization and support for relationships, JSON API reduces the complexity of handling data, leading to more efficient development.<\/span><\/p>\n<p><b>3. Compatibilit<\/b><span style=\"font-weight: 400;\">y: JSON API is widely supported across various programming languages and frameworks, making it easy to integrate Drupal with a wide range of technologies.<\/span><\/p>\n<p><b>4. Scalability<\/b><span style=\"font-weight: 400;\">: JSON API&#8217;s RESTful design allows your Drupal site to scale effortlessly, handling a growing number of clients and requests.<\/span><\/p>\n<h3><b>Conclusion<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">JSON API is a powerful tool that exposes content in a flexible way and in a standardized format. It simplifies the process of building a decoupled application or integrating Drupal with other services and promotes best practices in API design.<\/span><\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>JSON API is a standardized specification for building APIs in JSON format. It aims to simplify and streamline the process of creating and consuming APIs by providing a clear and consistent structure for data exchange. JSON API is a core module to access Drupal&#8217;s data structures, i.e., entity types, bundles, fields, etc. It supports the [&hellip;]<\/p>\n","protected":false},"author":1672,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":285,"footnotes":""},"categories":[3602],"tags":[5510],"class_list":["post-59099","post","type-post","status-publish","format-standard","hentry","category-drupal","tag-drupal-dev-programmer-developer-php-json_api-apis-decoupled"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"JSON API is a standardized specification for building APIs in JSON format. It aims to simplify and streamline the process of creating and consuming APIs by providing a clear and consistent structure for data exchange. JSON API is a core module to access Drupal&#039;s data structures, i.e., entity types, bundles, fields, etc. It supports the\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Akash Kumar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/\" \/>\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=\"Introduction of Drupal JSON:API | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"JSON API is a standardized specification for building APIs in JSON format. It aims to simplify and streamline the process of creating and consuming APIs by providing a clear and consistent structure for data exchange. JSON API is a core module to access Drupal&#039;s data structures, i.e., entity types, bundles, fields, etc. It supports the\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/\" \/>\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=\"Introduction of Drupal JSON:API | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"JSON API is a standardized specification for building APIs in JSON format. It aims to simplify and streamline the process of creating and consuming APIs by providing a clear and consistent structure for data exchange. JSON API is a core module to access Drupal&#039;s data structures, i.e., entity types, bundles, fields, etc. It supports the\" \/>\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\\\/introduction-of-drupal-jsonapi\\\/#article\",\"name\":\"Introduction of Drupal JSON:API | TO THE NEW Blog\",\"headline\":\"Introduction of Drupal JSON:API\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/akash-kumar3\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2023\\\/10\\\/pasted-image-0-1024x420.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/introduction-of-drupal-jsonapi\\\/#articleImage\"},\"datePublished\":\"2023-10-20T14:19:17+05:30\",\"dateModified\":\"2023-11-05T14:24:21+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/introduction-of-drupal-jsonapi\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/introduction-of-drupal-jsonapi\\\/#webpage\"},\"articleSection\":\"Drupal, drupal dev programmer developer php json_api apis decoupled\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/introduction-of-drupal-jsonapi\\\/#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\\\/drupal\\\/#listItem\",\"name\":\"Drupal\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/drupal\\\/#listItem\",\"position\":2,\"name\":\"Drupal\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/drupal\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/introduction-of-drupal-jsonapi\\\/#listItem\",\"name\":\"Introduction of Drupal JSON:API\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/introduction-of-drupal-jsonapi\\\/#listItem\",\"position\":3,\"name\":\"Introduction of Drupal JSON:API\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/drupal\\\/#listItem\",\"name\":\"Drupal\"}}]},{\"@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\\\/akash-kumar3\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/akash-kumar3\\\/\",\"name\":\"Akash Kumar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/introduction-of-drupal-jsonapi\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/04afa266-e07a-4810-8da5-a04e846d6598_4491-Akash-Kumar-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Akash Kumar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/introduction-of-drupal-jsonapi\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/introduction-of-drupal-jsonapi\\\/\",\"name\":\"Introduction of Drupal JSON:API | TO THE NEW Blog\",\"description\":\"JSON API is a standardized specification for building APIs in JSON format. It aims to simplify and streamline the process of creating and consuming APIs by providing a clear and consistent structure for data exchange. JSON API is a core module to access Drupal's data structures, i.e., entity types, bundles, fields, etc. It supports the\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/introduction-of-drupal-jsonapi\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/akash-kumar3\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/akash-kumar3\\\/#author\"},\"datePublished\":\"2023-10-20T14:19:17+05:30\",\"dateModified\":\"2023-11-05T14:24:21+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":"Introduction of Drupal JSON:API | TO THE NEW Blog","description":"JSON API is a standardized specification for building APIs in JSON format. It aims to simplify and streamline the process of creating and consuming APIs by providing a clear and consistent structure for data exchange. JSON API is a core module to access Drupal's data structures, i.e., entity types, bundles, fields, etc. It supports the","canonical_url":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/#article","name":"Introduction of Drupal JSON:API | TO THE NEW Blog","headline":"Introduction of Drupal JSON:API","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/akash-kumar3\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2023\/10\/pasted-image-0-1024x420.png","@id":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/#articleImage"},"datePublished":"2023-10-20T14:19:17+05:30","dateModified":"2023-11-05T14:24:21+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/#webpage"},"articleSection":"Drupal, drupal dev programmer developer php json_api apis decoupled"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/#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\/drupal\/#listItem","name":"Drupal"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/drupal\/#listItem","position":2,"name":"Drupal","item":"https:\/\/www.tothenew.com\/blog\/category\/drupal\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/#listItem","name":"Introduction of Drupal JSON:API"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/#listItem","position":3,"name":"Introduction of Drupal JSON:API","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/drupal\/#listItem","name":"Drupal"}}]},{"@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\/akash-kumar3\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/akash-kumar3\/","name":"Akash Kumar","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/04afa266-e07a-4810-8da5-a04e846d6598_4491-Akash-Kumar-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Akash Kumar"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/","name":"Introduction of Drupal JSON:API | TO THE NEW Blog","description":"JSON API is a standardized specification for building APIs in JSON format. It aims to simplify and streamline the process of creating and consuming APIs by providing a clear and consistent structure for data exchange. JSON API is a core module to access Drupal's data structures, i.e., entity types, bundles, fields, etc. It supports the","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/akash-kumar3\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/akash-kumar3\/#author"},"datePublished":"2023-10-20T14:19:17+05:30","dateModified":"2023-11-05T14:24:21+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":"Introduction of Drupal JSON:API | TO THE NEW Blog","og:description":"JSON API is a standardized specification for building APIs in JSON format. It aims to simplify and streamline the process of creating and consuming APIs by providing a clear and consistent structure for data exchange. JSON API is a core module to access Drupal's data structures, i.e., entity types, bundles, fields, etc. It supports the","og:url":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/","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":"Introduction of Drupal JSON:API | TO THE NEW Blog","twitter:description":"JSON API is a standardized specification for building APIs in JSON format. It aims to simplify and streamline the process of creating and consuming APIs by providing a clear and consistent structure for data exchange. JSON API is a core module to access Drupal's data structures, i.e., entity types, bundles, fields, etc. It supports the","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"59099","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"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":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"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":{"id":"#aioseo-article-65e065e5b203a","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","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":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2023-11-05 08:49:17","updated":"2024-02-29 11:09:25","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\/drupal\/\" title=\"Drupal\">Drupal<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tIntroduction of Drupal JSON:API\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Drupal","link":"https:\/\/www.tothenew.com\/blog\/category\/drupal\/"},{"label":"Introduction of Drupal JSON:API","link":"https:\/\/www.tothenew.com\/blog\/introduction-of-drupal-jsonapi\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/59099","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\/1672"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=59099"}],"version-history":[{"count":2,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/59099\/revisions"}],"predecessor-version":[{"id":59382,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/59099\/revisions\/59382"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=59099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=59099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=59099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}