Upload
vladimir-roudakov
View
186
Download
1
Tags:
Embed Size (px)
Citation preview
Drupal 8 update09 November 2014
Brisbane meetup
TOC
- Drupal 8 update
- Drupal 8 Services
Drupal 8 update
- 8.0.0-beta2
Drupal 8 update
- 128 release blockers
- 1 in 3 is new (since beta 1)
- 58% active (last 2 weeks)
Drupal services
- Headless Drupal
- Use cases
- Website: forget about theming layer!
- Web applications
- Mobile Applications
Drupal services
services: rest
RESTful Web Services (rest)
- exposes entities and other resources via a
RESTful web API.
- depends on the Serialization module
services: serialization
Serialization (serialization)
- Provides a service for serialization of data to
and from formats such as JSON and XML.
services: hal
Hypertext Application Language (hal)
- Extends the Serialization module to provide the HAL
hypermedia format.
- HAL: primary format in Drupal 8 Core.
- adds 2 reserved keywords ‘_links’ ‘_embedded’ .
- -can be encoded in both JSON and XML.
services: rest
HTTP Basic Authentication (basic_auth)
- implements basic user authentication using the HTTP Basic
authentication provider
- advised to configure SSL if you use it in production.
- for more secure: contrib OAuth module which already has a
Drupal 8 branch.
REST module
- enables the node entity resource
- GET, POST, PATCH, and DELETE operations.
- supports basic or cookie authentication
- supports the HAL or JSON formats.
- Default settings in
sites/default/files/config_XXXX/active/rest.settings.yml
rest.settings.yml
admin/config/development/configuration/single/export
REST UI module
- https://www.drupal.org/project/restui
- user interface for enabling and disabling resources,
serialization formats, and authentication providers.
- admin/config/services/rest
REST UI module
Use dev version!
REST UI module
REST UI module
REST UI module
Examples
- Drupal 8
- frontend/ folder with
- Bootstrap 3
- Angular 1.3
Services for nodes
Services for views
Services for views
Services for views
- Demo!
References
- https://www.drupal.org/node/2357303 [Beta 2]
- https://drupalize.me/blog/201401/introduction-restful-web-
services-drupal-8
- https://groups.drupal.org/core/updates
[Drupal core updates]
- http://www.koberg.com/2014/06/08/headless-drupal-8-and-
angularjs-theme-separation-of-concerns/
QUESTIONS?
- http://www.technocrat.com.au/
- @Vladimiraus @tesdev
- http://www.slideshare.net/VladimirAus