Services Government Format

Component ID

2374363

Component name

Services Government Format

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

405

Component created

Component changed

Component body

This module assists in making Services responses comply with the White House API Standards.

  • By default, it will modify all responses to include metadata in accordance with said standards
  • It also supplies services_govformat_format(), which can be used by services resource callbacks to return data in a compliant format.

For example:

  return services_govformat_format(array(
    'results' => $nodes,
    'pagesize' => $page_size,
    'count' => $count,
  ));

Dependencies

Used by