Skip to content

Update examples for the component/blueprint versions API (platform ADR 0174) #3

Description

@justinmerrell

musher-dev/platform#2676 makes Components and Blueprints one resource with numbered versions (ADR 0174). Examples that call the old shape will break:

  • Removed: POST /v1/components/{id}:publish|:deprecate|:withdraw, GET /v1/organizations/{org}/components/{slug}/lineage, DELETE …/components/{slug}, and the blueprint equivalents.
  • New shape: /v1/components/{id} names the component; its history is /versions and /versions/{n}, with actions on a version (…/versions/{n}:publish) and a discarding DELETE.
  • The lineage body exposes currentVersion, latestPublishedVersion and draftVersion.
  • Deployments take blueprintId + blueprintVersion (default: latest published).
  • Multi-value parameters use type: STRING_LIST (specifications ADR 0020); multiple: true is removed.
  • Modelines and URLs move to musher-dev/specifications / specifications.musher.dev (specifications#87).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions