HTTP Method
HTTPメソッド
HTTPメソッドは、リクエストで意図されたアクションの種類を示す単語です。それぞれのメソッドには、安全性、再試行、キャッシュに関する標準的なルールがあります。
もう一つの例
ドキュメントAPIは、影響なく読み取るために `GET` を使用し、既知のリソースを置き換えるために `PUT` を使用します。部分編集には `PATCH` を使用し、削除リクエストには `DELETE` を使用します。リンクチェッカーは安全に `HEAD` を送信できます。クローラーは `GET` で請求書を承認してはいけません。
主な部分
- 01メソッドトークン
- 02定義済みセマンティクス
- 03ターゲットリソース
以下の場合に使用します
標準的な意味がアクションに合う登録済みのメソッドを選択します。その条件、データ形式、および応答を記録してください。
以下の場合は使用しないでください
安全な方法でデータを変更しないでください。キャッシュやその他の中間システムが標準的な意味を必要とする場合、すべての操作を `POST` に隠さないでください。
コードで使用する名前
GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH 出荷前に
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome:Complete the task with HTTPメソッド (HTTP Method)。 User context:ドキュメントAPIは、影響なく読み取るために `GET` を使用し、既知のリソースを置き換えるために `PUT` を使用します。部分編集には `PATCH` を使用し、削除リクエストには `DELETE` を使用します。リンクチェッカーは安全に `HEAD` を送信できます。クローラーは `GET` で請求書を承認してはいけません。 Technical concept or control:HTTPメソッド (HTTP Method)。 Why it fits:標準的な意味がアクションに合う登録済みのメソッドを選択します。その条件、データ形式、および応答を記録してください。 Do not use it when:安全な方法でデータを変更しないでください。キャッシュやその他の中間システムが標準的な意味を必要とする場合、すべての操作を `POST` に隠さないでください。 Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary):この標準は、列挙された範囲のみを対象とします。視覚スタイル、製品の判断、またはVibularyの例は選びません。 Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
このリクエストを確認する
Review how HTTPメソッド (HTTP Method) is used now. Definition: HTTPメソッドは、リクエストで意図されたアクションの種類を示す単語です。それぞれのメソッドには、安全性、再試行、キャッシュに関する標準的なルールがあります。 Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.