Services API Documentation

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

This section is for developers interested in creating service or server modules to extend the capabilities of Services.

Example: Accessing a service using Java

Overview of Services

Overview

Server module example

Here is a commented example of a server module which uses hook_server() to become a server.

Service Module Example

Here is a commented example of a custom service module that uses hook_service() to become a service.

Service module example: Echo service

This service can be useful as an example, and as a test to make sure the services are functioning. This module simply replies with the

hook_service configuration keys

These keys can be used when implementing hook_service

Guide maintainers

snelson's picture