Build the Internet of Things

with Drupal REST Services

I'm Matt Korostoff

I work for Blink Reaction

(and you should too)

WHAT?

WHY?
HOW?

REST

what?

{
  "nid": 1,
  "title": "hello world"
}

Hello world

WHY?

Will Drupal Last?

The Web

Then

NOW

Transport

Transport

BODIES

HOMES

Pets

HOW?

Views Datasource

 

Cons:

Hard to alter with code

Innately read-only

Pros:

Easy to create simple services

Familiar interface

views datasource example

RESTful Web Services

Pros:

no setup time

similar to drupal 8

read/write

accepts query parameters

Cons:

hard to add custom services

poorly documented

fewest features

 

 

 

restws example

Services

Pros:

By far the most features

Easily extensible

REST, SOAP, and XML-RPC

Best documentation

Cons:

Longest setup time

services example

REST services automagically become SOAP!

Thank you

Further reading

Build the Internet of Things with Drupal REST Services

By Matt Korostoff

Build the Internet of Things with Drupal REST Services

How to use Drupal as a REST and SOAP server

  • 2,465