Problem/Motivation

Term references appear in nearly every response, usually as a compact triple of id, name and alias, sometimes as a full card. The hierarchical case — a term with its parents — is used for breadcrumbs and category trees and is currently rebuilt by hand in several places.

Proposed resolution

  • term_ref: id, name, alias, with the option to include the parent chain.
  • Translation handled at the term level, so a reference in a Ukrainian response carries the Ukrainian name.
  • The full card case delegates to the card shape rather than duplicating it.
  • Kernel coverage on a hierarchical vocabulary and on a term without a translation.

Remaining tasks

Everything.

Issue fork myrest-3620173

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 6b612754 on 1.0.x
    Issue #3620173: Add the term reference and vocabulary shapes
    
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)