Download presentation
Presentation is loading. Please wait.
Published bySpencer Burns Modified over 9 years ago
1
Copyright © 2009. Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. Drupal Web Services 1 Authored by: Chaitanya Anil Kulkarni Presented by: Chaitanya Anil Kulkarni
2
Copyright © 2009. Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. www.cybage.com Agenda What is Rest API Drupal web services modules Drupal default web services Browser tools Extending existing web services Custom web services Push Notifications 2
3
Copyright © 2009. Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. www.cybage.com What is Rest API Representational state transfer (REST) o Is a way to communicate with server for performing CURD operations o It is considered as alternative to more complex mechanisms like SOAP Basic terminologies o Resource Collection of URLs [ http://example.com/resources] o RESTful API HTTP methods GET, PUT, POST and DELETE. 3
4
Copyright © 2009. Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. www.cybage.com Return Types Web Services return format JSON { "glossary": { "title": "example glossary“ } } XML example glossary. 4
5
Copyright © 2009. Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. www.cybage.com Drupal Web Services 5
6
Copyright © 2009. Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. www.cybage.com Services Modules Services o Provide an API for creating web services. o It provides ability for creating methods/actions. REST Server o Provides an REST server. o Returns output based on configured element of each service. 6
7
Copyright © 2009. Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. www.cybage.com Browser Tools Below are tools that allows you to interact with web services and inspect the results Firefox Add-on - Poster Chrome Extension - REST Console We need to specify specified set of parameter consumed by web services with particular action[GET, POST, PUT, DELETE]. 7
8
Copyright © 2009. Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. www.cybage.com Folder Structure Drupal follows specific set of folder structure to create custom web services. o CustomModule1_resource Resource file consists of operations[CURD] and actions[custom functionality] Services file consists of predefined set of functions for performing CURD operation and access permissions for web services. 8
9
Copyright © 2009. Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. www.cybage.com Push Notification We can implement push notification by using Google cloud messaging. GCM Connection server takes messages from 3 rd party application server and send them to GCM enabled Android application. Ports required to be opened from server must be 5228, 5229, and 5230. Reference link http://developer.android.com/google/gcm/http.html 9
10
Copyright © 2009. Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. Thank you.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.