Headless Drupal

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.

We want Drupal to be the CMS of choice for client-side MVC frameworks.

We want an API for renderable structure and context-aware template-driven JSON representations of pages.

The intention of this working group is to discuss how Drupal core should change for the ability for many different presentation layers to interact with Drupal, especially client-side frameworks, not just Drupal's own theme system.

We are working on drafting a manifesto on GitHub.

For some background, see Notes and Discussion from DrupalCon Austin.


Our todo list to get to robust RESTful client interaction support

  1. Document the current REST API
    • Maybe use something like Apiary
  2. Verify that we have PATCH support and that we can make individual field updates
  3. Implement OPTIONS support
  4. Create a benchmark implementation on a popular framework like Angular or Backbone
  5. Support retrieval of specific content entity views over REST
  6. Support retrieval of specific content entity edit forms and fields with widgets over REST
  7. Support linking and mapping of associated templates when retrieving of specific content entity views over REST
  8. Develop a cache-busting file name fingerprinting strategy so that templates and other resources retrieved from entity links can be versioned

tony.stecca@virtualhighschool.com's picture

Help Starting a Headless Drupal System

Hi,

my name is Tony. I work for a large online high school. We deliver all of our content as static HTML pages via a learning management system.

We are currently designing a new content and content delivery system and are interested in using JSON objects to represent our pages drupal to store the objects. After some research it appears that this approach is already in use by some organizations and is called headless drupal.

Read more
Dan_Rogers's picture

Headless Calendar Application

Howdy Yall! Just wanted to post here to gauge interest on releasing a headless calendaring application we just built, called UniCal.

Read more
agungsuyono's picture

Drupal 8 + AngularJS Implementation

I'm trying to use AngularJS in Drupal 8 template. My objective is to get the power of drupal as a backend to do content query, and AngularJS as a front end to make a single one page application. I'm implementing AngularJS in drupal module with name drupal_ng. The complete code is in https://github.com/agungsuyono/drupal_ng. However, I'm wondering whether my implementation is not correct. Because I didn't see the result as expected; it seemed ng-controller didn't work in the HTML template. The javascript controller that I wrote did not bind to the HTML template.

Read more
Mandakini_Kumari's picture

Headless in Drupal 8

Can we Create node type and Manage content Fields using headless ? If yes what should be the request parameter ?

I am trying to consume below POST method:
http://mysite/admin/structure/types/add
http://mysite/admin/structure/types/manage/page/fields
http://mysite/admin/structure/types/manage/page/fields/add-field

Wish to know Request parameter for above services in case of Headless Drupal ?

Read more
abdofariss's picture

Symfony headless drupal login bug

Hi,

I'm trying to build a symfony headless drupal application, i made a custom module to handle login, logout and registration process,

this is my custom module:
<?php
/**
* @file
* Contains \Drupal\remoteuser\Controller\RemoteUserController
*/

namespace Drupal\remoteuser\Controller;

use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Form\FormState;
use Drupal\Core\Entity;
use Drupal\user\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;

class RemoteUserController extends ControllerBase
{
public function login() {

Read more
chrowe's picture

Seems like Dries's latest blog post should be linked to from here.

How should you decouple Drupal?

"With RESTful web services in Drupal 8 core, Drupal can function as an API-first back end serving browser applications, native applications on mobile devices, in-store displays, even in-flight entertainment systems (Lufthansa is doing so in Drupal 8!), and much more. When building a new website or web application in 2016, you may ask yourself: how should I decouple Drupal? Do I build my website with Drupal's built-in templating layer or do I use a JavaScript framework? Do I need Node.js?"...

http://buytaert.net/how-should-you-decouple-drupal

Read more
vacho's picture

How to add a js file with reactjs code to drupal 8 module

Hi, guys...
How to add a js file with reactjs code to drupal 8 module. This file is babel(o jsx) format.

At modules/product_search/product_search.libraries.yml I put this code:

searcher:
version: 1.x
js:
js/react.min.js: {}
js/react-dom.min.js: {}
js/browser.min.js: {}
js/searcher.js: {type: babel}

But this error appear:

Exception: Invalid JS asset type. in Drupal\Core\Asset\JsCollectionRenderer->render() (line 95 of core/lib/Drupal/Core/Asset/JsCollectionRenderer.php).

Read more
uk4drupal's picture

Blog in drupal like wordpress as mcdonaldsblog.in

Can we develop wordpress like functionality in drupal as eg. http://mcdonaldsblog.in

Read more

Reviews and Mentoring for Devaraj johnson

This wiki page is created to keep track of my project application reviews Reviews and Mentoring

Read more
Robert Ngo's picture

Drupal 8 headless with BackboneJS, retrieve single entity with referenced field

Hello friends,

I'm building up a contact directory search with Drupal 8 and Backbone. The idea is to benefit Drupal 8 to set up and expose search data via Views with Json format.

And I have 2 questions regarding setting up REST endpoint

  1. When retrieving a single node from Backbone, I'd call /node/[nid]?_format=json and get

    {
    "nid": [{
    "value": "55"
    }],
    "uuid": [{
    "value": "ec524ba2-5514-4179-a916-2213d40a0641"
    }],
    "vid": [{
    "value": "55"
    }],
    "field_acc_type": [{
Read more
tripper54's picture

Best practice for consumer agnostic RESTful password reset?

I'm in the process of designing and building an API that will be used by multiple consumer platforms - web clients, native mobile apps, other servers.

One of the things I'll need is a robust method for handling forgotten passwords.

I'm thinking the RESTfullest way to to do this on the server side is by adding a pseudo field to the /users resource and accepting a PUT/PATCH request on it, something like 'password_reset' => TRUE .

Read more
dark-o's picture

Shunter, json to html node.js app

Has anybody used this in conjunction with Drupal?

https://github.com/nature/shunter

Looks interesting, we at Oxfam are planning our Drupal 8 site and investigating decoupling options, any tips welcome

Read more
drupalnewie @berfi's picture

javascript framework

Hei guys!

I have gone through discussions about javascript frameworks. There are lots of frameworks and libraries choices. The thing is when we talk in context of ReST and Drupal as ReST service, It should be some how clarified to produce the best of performance on production environments. The frameworks are claiming each one is better than other in terms of best performance. What drupal community in specific the headless drupal minds are thinks about the javascript frameworks? the reason for a framework as the best performer.

thanks

Read more
lightguardjp's picture

Image upload with headless / decoupled drupal?

I'm trying to figure out the best way to handle images in a headless drupal 8 install. Using the /entity rest endpoint is not working during serialization as it seems like I need to have a URI for the existing file on the drupal install. I'd like to be able to do everything in one step, if that's possible.

Read more
Stomper's picture

Drupal 8 (RC1) Stability for a new headless project

I am in the process of starting a new project, that I would like to use a headless/decoupled approach.

I am debating on whether to use Drupal, specifically D8, but as it's very new, am concerned as it's stability. I understand D8 is superior to D7 for headless projects as D7 requires Services and RESTW modules. Is D8 (RC1) fit for a new headless project, or should I start with D7.

I am also considering Symfony CMF, but appreciate the less code-centric UI of Drupal admin.

Thanks

Read more
wanflap's picture

Headless Drupal Session offered at Baltimore Drupal Camp

Thinking outside the block. Embracing a (sometimes) decoupled architecture
Instructor: Dan Rogers
Level: Intermediate
Register here: bmoredrupal.org

Read more
wanflap's picture

Training Details Released for Baltimore Drupal Camp

Training details for Baltimore Drupal Camp have been published here. (also included below)
We love Drupal and its community so we want to introduce it to as many new people as possible; therefore, we're offering a full day's, professionally taught course for Drupal beginners at no extra cost. I think this is rare for a camp.
I know many of you are already familiar with Drupal, but why not forward this to a friend who's new to Drupal or wants to get started in web development/design/site building?

Read more
wanflap's picture

Sessions due for Baltimore Drupal Camp

Hey folks, sessions for Baltimore Drupal Camp are due Wednesday. Please post your session proposals here. Thanks!

Read more
wanflap's picture

Baltimore Drupal Camp will offer a full day's course for Drupal beginners

Baltimore Drupal Camp will offer a full day's course for Drupal beginners, NO extra charge! It will be taught by a professional Drupal instructor and offered as an additional track.
Mark your calendar OCT09. More details to follow soon.

Read more
technicalknockout's picture

What strategies are "decoupled" drupal developers using for SEO?

I'm working on a new project using the yeoman backbone generator and drupal as a json data service. If anyone can share any SEO-specificy insights, alternative strategies, or any other gotchas they've encountered, it would be greatly appreciated.

Read more
Subscribe with RSS Syndicate content

Headless Drupal

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week