![]() once the user methods are enabled, sending HTTP requests to allows a user to login via the web service and would allow a new user to register. This is to define the software function provided by this endpoint eg. View list of services again (Go to admin/structure/services) Lets be boring and call our endpoint “api”. Make sure that the rest_server module is installed. You will be presented with an empty list because no endpoint/resources have been defined yet Add an an endpoint $ drush en admin_menu Go to admin/structure/services you can also download drupal 7 the old fashioned way. I am a big fan of using the command line so I strongly reccomend this tool called drush which saves me mucho time.ĭrush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt. To demonstrate how to set up and interact with the services module, I am sharing all the steps I took to setup drupal on my (local)development environment and install, enable, and configure the relevant modules. Although free and open source frameworks such as PhoneGap allow developers to gain access to the audio, image, and video capture capabilities of the device, I have chosen to just fork an existing Android application written in java. The advantage of having this as a native app instead of say just a mobile friendly website is that going native allows me to access the hardware of the cell phone to allow users to record their own use of patwa as audio files. By exposing my patwa content on the internet as a web service, I can build a mobile app that allows users to easily add new patwa words to the dictionary. is an audio dictionary for the Jamaican patois language. ![]() ![]() In my case, I have a website called which I am in the process of updating from Drupal 6 to Drupal 7. Why? What are web services good for anyway?Ī Web Service is a method of communication between two electronic devices over a network. I also include a sample native Android app to demonstrate how to login to Drupal via an HTTP request to the server and post new content by using this web service to interact with the Drupal site from a completely seperate application. ![]() I will demonstrate how to set up the Drupal Services module to quickly turn your Drupal 7 website into a REST server. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |