Skip to content

feat(asm): add GET and DELETE /tags/{tag_id} to complete Tags CRUD#11

Open
dmchaledev wants to merge 1 commit into
mainfrom
claude/elegant-edison-7itluf
Open

feat(asm): add GET and DELETE /tags/{tag_id} to complete Tags CRUD#11
dmchaledev wants to merge 1 commit into
mainfrom
claude/elegant-edison-7itluf

Conversation

@dmchaledev

Copy link
Copy Markdown
Contributor

$(cat <<'EOF'

Problem

The Tags resource in asm/openapi.yaml was missing GET /tags/{tag_id} and DELETE /tags/{tag_id}. API consumers could create tags but had no way to fetch a single tag by ID or remove one — an incomplete CRUD contract that would force workarounds (e.g., filtering GET /tags client-side just to confirm a tag exists before deletion).

Changes

  • GET /tags/{tag_id} — retrieve a single tag by ID
  • DELETE /tags/{tag_id} — permanently delete a tag; description clarifies the tag is removed from all assets that carry it
  • components/parameters/TagId — reusable path parameter (mirrors the existing AssetId pattern)
  • Added description fields to listTags and createTag operations (they were the only two operations in the spec without one, which caused Spectral oas3-operation-description warnings)

Test plan

  • spectral lint asm/openapi.yaml --ruleset spectral:oas --fail-severity warn passes with no new warnings
  • Both new operations appear in the rendered ReDoc docs at the GitHub Pages URL
  • DELETE /tags/{tag_id} returns 204 on success and 404 when the tag ID doesn't exist

https://claude.ai/code/session_01JBue1nqjg6Apw8JCu9BGev
EOF
)


Generated by Claude Code

Tags could be created but never retrieved individually or deleted,
leaving the resource CRUD incomplete. Adds the missing path with a
reusable TagId path parameter component and removes the tag from all
carrying assets on delete (documented in the description). Also adds
missing `description` fields to listTags and createTag for doc clarity.

https://claude.ai/code/session_01JBue1nqjg6Apw8JCu9BGev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants