iOS RESTful Library for Drupal 8
Transcript of iOS RESTful Library for Drupal 8
An iOS REST client for Drupal 8
A GSoC 2014 project By
Jeff and Vivek
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
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
Demo
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
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
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.
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
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.
QA
Jeff Linwood ( @jefflinwood )[email protected]/jefflinwood
Vivek Pandya ( @VivekvPandya)[email protected]/jefflinwood