Services Extras

Component ID

1998630

Component name

Services Extras

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

596

Component created

Component changed

Component body

This module provides extra features that extend the Services module. These currently include:

  1. A Search API service that accepts parameters for search terms, facets, index, sort order, result limit, offset, and result format
  2. Simplified result formats for entities like nodes, comments, and users. No Drupal 'und' arrays. Good for non-Drupal frontends. Example below
  3. A site settings web service
  4. LDAP authentication support for the Services module login resource
  5. Alter hooks for service results
  6. Services definition page for all enabled services

 

A response to our simplified UI resource for a user /myservices/user/222/ui.json looks like this:

 {
    uid: "222",
    name: "tway",
    field_first_name: {
      label: "Todd"
    },
    field_last_name: {
      label: "Way"
    },
    field_location: {
      id: "604",
      label: "KC-Airport",
      type: "taxonomy_term"
    },
    field_department: {
      id: "614",
      label: "Technology",
      type: "taxonomy_term"
    },
    edit_link: "user/222/edit",
    display_name: "Todd Way",
    ...
  }

 

And a response to the standard Services module resource for a user /myservices/user/222.json looks something like this:

{
   uid: "222",
   name: "tway",
   field_first_name: {
     und: [
       {
         value: "Todd",
         format: null,
         safe_value: "Todd"
       }
     ]
   },
   field_last_name: {
     und: [
       {
         value: "Way",
         format: null,
         safe_value: "Way"
       }
     ]
   },
   field_location: {
     und: [
       {
         tid: "604"
       }
     ]
   },
   field_department: {
     und: [
       {
         tid: "614"
       }
     ]
   },
   ...
 }

 

Development of this module sponsored by VML