Problem/Motivation

The tooling that reads a site's model and writes PHP files is development-time code. It must be installable independently and, more to the point, uninstallable — a production site should be able to run the generated API without carrying a code generator.

Proposed resolution

  • Create modules/myrest_scaffold with its info file, services, permissions and an administration route under /admin/config/services/myrest/scaffold.
  • Depend on myrest_model; nothing depends on it.
  • Declare a dedicated permission for scanning and generating, separate from the module's configuration permission — generating writes files to the filesystem.
  • Add it to the pipeline like the model submodule.

Remaining tasks

Everything. Skeleton only.

Issue fork myrest-3619491

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 2543f04d on 1.0.x
    Issue #3619491: Add the myrest_scaffold submodule for the scanner, the...
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)