Problem/Motivation

A site needs a point before generation where it can say "not this bundle", "also this endpoint", "this path instead". Without it, excluding a single bundle from the API means editing generated files, which the whole design forbids.

Proposed resolution

  • Invoke hook_myrest_blueprint_alter() on the finished Blueprint, before anything is written.
  • Document it in myrest.api.php with a working example that removes a bundle and one that renames a key.
  • Validate the altered Blueprint again, so a hook cannot produce configuration the generator would choke on.
  • Kernel test with a test module implementing the hook.

Remaining tasks

Everything.

Issue fork myrest-3621611

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’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)