feat: API作成コマンドを追加 - #41
Merged
Merged
Conversation
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.
概要
microCMS Management API を利用して API を作成する
microcms api createを追加します。あわせて、
0.8.0リリースに向けたバージョン更新と変更履歴を整備します。変更内容
api create --file <path>を追加し、payload のローカル検証と--dry-run --jsonによる事前確認に対応--name・--endpoint・--typeによる基本設定の補完・上書きに対応--allow-additional-chargeが明示された場合だけallowAdditionalCharge=trueを送信package.jsonとpackage-lock.jsonを0.8.0に更新テスト
npm run check:cinpm pack --dry-run --json補足
--json契約への影響:api.createのdry-runメタデータを既存の成功エンベロープ内に追加。通常実行時はManagement APIのレスポンスを既存のエンベロープで返すINVALID_INPUT、HTTPエラーは既存のステータスマッピングを使用