DrupalCon Sydney: Drupal 8 Web Services
-
Upload
ryanishungry -
Category
Technology
-
view
1.792 -
download
1
description
Transcript of DrupalCon Sydney: Drupal 8 Web Services
Drupal 8 Web Services
CODING AND DEVELOPMENT | Moshe Weitzman | FEBRUARY 7 2013
Thursday, February 7, 13
Demo
This is the sub headingLorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent vitae sapien sed nisi commodo posuere. Quisque sollicitudin nisi vitae mi. • Single page apps• Native Mobile Apps• Content staging - deploy module• Content sharing - Feeds Module• Add-on projects like Create.js
2
Thursday, February 7, 13
Demo
This is the sub headingLorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent vitae sapien sed nisi commodo posuere. Quisque sollicitudin nisi vitae mi. • Single page apps• Native Mobile Apps• Content staging - deploy module• Content sharing - Feeds Module• Add-on projects like Create.js
3
Thursday, February 7, 13
Demo
•REST module backend•GET of an aggregator feed•GET results of a View•DELETE a node
4
Thursday, February 7, 13
Use Cases
• Single page apps (Backbone)• Native Mobile Apps• Content staging - Deploy• Content sharing - Feeds• Add-ons like Create.js
5
Thursday, February 7, 13
REST
Representational State Transfer
• An IETF standard very related to HTTP 1.1• Developed by Roy Fielding in 2000• Verbs: POST,PUT,PATCH,DELETE
6
Thursday, February 7, 13
Capabilities
•CRUD Content Entities•Read View results•Read a dblog record
7
Thursday, February 7, 13
Response Formats
• JSON-LD• JSON• XML
8
Thursday, February 7, 13
Developers
• Easy: Use content entities (EntityNG)• REST module plugins (dblog)• Normalizers, Serializers (JSON-LD)• Docs: rest.module tests• D7: Restws and Services projects
9
Thursday, February 7, 13
The Future
• Update Entity Types to EntityNG• Basic Auth• Entity Reference
• Config entities• Offline/Rich editors apps• Data sync/deploy/migration tools
10
Thursday, February 7, 13
Credits
• Klaus Purer• Lin Clark• Fago• Acquia
11
Thursday, February 7, 13
12
Thursday, February 7, 13