Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

DrupalCamp Kyiv 2011 Services

1,008 views

Published on

DrupalCamp Kyiv 2011 Drupal Services 3.x
What is module Serivces? How to integrate other applications with Drupal? Some handy tips to build REST interface on Drupal.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

DrupalCamp Kyiv 2011 Services

  1. 1. Drupal Services
  2. 2. <ul>Presentation plan </ul><ul><li>What is Services for?
  3. 3. Resources out-of-box.
  4. 4. Services API
  5. 5. Building REST interface with Services
  6. 6. Future of Services </li></ul>
  7. 7. Architechture
  8. 8. Services 3.x <ul><li>resource oriented (CRUD = create, retrieve, update, delete, index)
  9. 9. different formatters (php, json, jsonp, xml, ...)
  10. 10. separate endpoints (exportable to features) </li></ul>
  11. 11. Services 3.x resources <ul><li>Node resource
  12. 12. Taxonomy vocabulary resource (getTree)
  13. 13. Taxonomy term resource (selectNodes)
  14. 14. User resource (login, logout, register)
  15. 15. Comment resource (loadNodeComments, countAll, countNew)
  16. 16. System resource (no CRUD) (connect, get_variable, set_variable) </li></ul>
  17. 17. Services 3.x resources <ul><li>File resource (CRUD) (nodeFiles) </li></ul>
  18. 18. Services 3.x hook_services_resources
  19. 19. Services 3.x hook_services_resources
  20. 20. Services 3.x REST server formatters <ul>http://<your_domain>/<your_endpoint_path>/<your_resource_path>.<formatter> </ul>Standard: php, json, jsonp, xml, yaml, bencode (see RESTServerViewBuiltIn)
  21. 21. Build REST interface <ul><li>Implement CRUD functionality.
  22. 22. Use actions, relationships resource/node/X/comments
  23. 23. Use aliases if needed.
  24. 24. Write unit tests (TDD) </li></ul>
  25. 25. Future of Services <ul><li>Context objects
  26. 26. Entities
  27. 27. Views
  28. 28. Core </li></ul>
  29. 29. Tools & Resources <ul><li>Poster https://addons.mozilla.org/en-US/firefox/addon/2691
  30. 30. Services Handbook http://drupal.org/handbook/modules/services
  31. 31. Tests
  32. 32. A future for Services. http://goodold.se/blog/tech/future-services-3x
  33. 33. Groups http://groups.drupal.org/services </li></ul>
  34. 34. <ul>Questions </ul><ul>Ваша фотка </ul><ul>email: [email_address] twitter: ygerasimov skype: yuriy_gerasimov </ul>d.o.: http://drupal.org/user/257311

×