Conversation
/api/v1/documents/{docid} に対する GET/PATCH/DELETE 3つの
エンドポイントを操作するサブコマンドを追加。
- xp document get <docid> 書類内容取得 (JSON 出力 / --jq 対応)
- xp document edit <docid> 書類更新・ワークフロー操作 (--body 必須)
- xp document delete <docid> 書類削除 (--yes で確認スキップ)
あわせて xp schema のエイリアスに document.get / document.update /
document.delete を追加。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/v1/documents/{docid}の GET/PATCH/DELETE を操作する3サブコマンドを追加xp document get <docid>— 書類内容取得 (レスポンスはフォーム定義に依存するため JSON で返却、--jqでフィルタ可能)xp document edit <docid>— 書類更新・ワークフロー操作 (--body必須、inline/file/stdin に対応)xp document delete <docid>— 書類削除 (標準で確認プロンプト、--yes/-yでスキップ)xp schemaにdocument.get/document.update/document.deleteのエイリアスと JSON スキーマを追加GetDocument/UpdateDocument/DeleteDocumentを追加parseDocIDとエラーパス、スキーマの追加エイリアスに対するテストを追加Test plan
go test ./...が通るgolangci-lint run ./...が通るxp document --helpに 3 サブコマンドが表示されるxp schemaに 3 エイリアスが追加されているxp document get / edit / deleteが API 呼び出しに成功する🤖 Generated with Claude Code