10
An iOS REST client for Drupal 8 A GSoC 2014 project By Jeff and Vivek

iOS RESTful Library for Drupal 8

Embed Size (px)

Citation preview

Page 1: iOS RESTful Library for Drupal 8

An iOS REST client for Drupal 8

A GSoC 2014 project By

Jeff and Vivek

Page 2: iOS RESTful Library for Drupal 8

REST module in Drupal 8• REST module in D8 allows to expose all most every

possible content entities• Hypermedia driven • Supported auth method basic , cookie ,Oauth , etc.• Very powerful with Drupal ‘Views’ • Still some issues and bugs like problems with File

entity • Lacks documentation and examples

Page 3: iOS RESTful Library for Drupal 8

Our iOS client • A simple app written in Objective – C • Consumes RESTful API for node, view , user• Demonstrates GET, POST , PATCH and DELETE on a node Basic Auth for user to login

Page 4: iOS RESTful Library for Drupal 8

Demo

Page 5: iOS RESTful Library for Drupal 8

DrupalREST Kit• A try to extract common functionality needed

for a Drupal REST client• Currently for iOS, in Objective – C• Supports CRUD on node, user , comment , GET

on view• Same framework for Java (android), JavaScript

can be implemented

Page 6: iOS RESTful Library for Drupal 8

DrupalREST Kit• Needs to be extended • Support for CRUD on other entity types• Support for configuration entities • Benefits :– No need to write the same code again– Better code with more people working for it

Page 7: iOS RESTful Library for Drupal 8

Possibilities with REST• Content creation and maintenance • User creation and maintenance• Review comments and allow / delete it• Site monitoring with logs and reports • Put site on maintenance mode etc.

Page 8: iOS RESTful Library for Drupal 8

How can DrupalREST kit helps to achieve headless Drupal ?

• Same framework can be written with JavaScript

• These API could be core API that interacts with Drupal back end

• And headless Drupal can render the content

Page 9: iOS RESTful Library for Drupal 8

Some issues with Drupal 8 REST module

• Support for Config Entity via REST • Serialization for file content to support CRUD

on File entity • Enable CORS for GET requests ( feature request )

• Problems with user entity creation• Need good documentation and examples etc.

Page 10: iOS RESTful Library for Drupal 8

QA

Jeff Linwood ( @jefflinwood )[email protected]/jefflinwood

Vivek Pandya ( @VivekvPandya)[email protected]/jefflinwood