Problem/Motivation

Other modules currently have no supported way to modify the normalized output or to add data to a resource response. The decoupling work introduces events, but they are not documented anywhere.

Proposed resolution

  • Add myrest.api.php documenting all hooks and events the module provides.
  • Provide hook_myrest_structure_alter() and a normalization event with documented properties.
  • Include a short example implementation in the file.

Remaining tasks

Write the API file and reference it from README.

User interface changes

None.

API changes

Documented, supported extension points.

Issue fork myrest-3615510

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sergeydruua created an issue. See original summary.

  • sergeydruua committed 594aca7a on 1.0.x
    Issue #3615510: Add an alter hook and events API with myrest.api.php
    
sergeydruua’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

sergeydruua’s picture

Status: Fixed » Closed (fixed)