Problem/Motivation

Every site has a handful of pages the front end addresses by role rather than by id — the home page, the blog index, the contacts page. Today the ids are constants in the code of each fork, which is the clearest single example of why the module cannot be installed elsewhere.

Proposed resolution

  • MyrestSpecialPageResourceBase resolving the entity through the special_pages convention by role name.
  • A role that is not filled answers 404 with the module's error envelope and a message naming the role, rather than a 500 or an empty 200.
  • Environment-specific ids supported through a settings.php override, since dev and production hold different node ids.

Remaining tasks

Everything.

Issue fork myrest-3620845

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 a5e27064 on 1.0.x
    Issue #3620845: Add the special page resource base class
    
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)