Problem/Motivation

Generated artefacts live in git, in the site's repository. For the configuration half of those artefacts that means the ordinary configuration export must produce clean, stable, diffable YAML, and a deployment must be able to apply it without a person.

Proposed resolution

  • Deterministic key order and no volatile values in the exported YAML, so that two exports of an unchanged model are byte-identical.
  • drush myrest:model:export and myrest:model:import for the subset the module owns, for sites that do not export their whole configuration — none of the three currently has a config/sync.
  • drush myrest:model:show to print a structure or an endpoint resolved, including inherited properties, which is what a person needs when a response looks wrong.

Remaining tasks

Everything.

Issue fork myrest-3620633

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 af6a9fb3 on 1.0.x
    Issue #3620633: Export, import and inspect the model from the command...
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)