Document the new `Query` value for the `-Method` parameter of Invoke-WebRequest and Invoke-RestMethod
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 86/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- powershell
調査の方向性
reference/7.6/Microsoft.PowerShell.Utility/Invoke-WebRequest.md と Invoke-RestMethod.md から始め、-Method パラメーターのセクションとその周辺の例を読んでください。Query を有効な値に追加し、適切な例を使ってリクエストボディの動作を文書化してから、両方の記事がリポジトリのドキュメント規約に従い、正しくレンダリングされることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Prerequisites
- Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
- Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new
Get-Foocmdlet" instead of "New cmdlet."
Summary
PowerShell is adding support for the standard HTTP QUERY method to Invoke-WebRequest and Invoke-RestMethod. A new Query value has been added to the WebRequestMethod enum (the valid set for the -Method parameter), implemented on top of .NET 10's new System.Net.Http.HttpMethod.Query API.
Details
The QUERY method is a safe, idempotent method defined by the IETF that is like GET, but sends its payload in the request body instead of the URI. This allows large or structured search/query parameters to be submitted without URI length limits. For more information, see the HTTP QUERY method (IETF) and MDN: HTTP QUERY method.
Articles
- Invoke-WebRequest (
reference/7.6/Microsoft.PowerShell.Utility/Invoke-WebRequest.md) - Invoke-RestMethod (
reference/7.6/Microsoft.PowerShell.Utility/Invoke-RestMethod.md)
Suggested updates:
- Add
Queryto the-Methodparameter description and the list of valid values. - Add one or two examples (see below).
Suggested content
Parameter description for -Method:
Specifies the HTTP method used for the request.
QUERYsends a safe, idempotent request whose parameters are carried in the request body rather than the URI. When-Bodyis a hashtable, it is sent as the request content (not converted into URI query parameters as withGET).
Example:
Invoke-RestMethod -Uri 'https://api.example.com/search' -Method Query `
-Body @{ q = 'powershell'; limit = 10 } `
-ContentType 'application/x-www-form-urlencoded'
Example:
$body = @{ query = 'SELECT * FROM events'; from = '2026-01-01' } | ConvertTo-Json
Invoke-WebRequest -Uri 'https://api.example.com/sql' -Method Query -Body $body -ContentType 'application/json'
Related Source Pull Requests
Related Source Issues
- 主要言語
- PowerShell
- スター
- 2.5k
- フォーク
- 1.7k
- 平均マージ
- 6時間 58分
- マージ済み PR(30日)
- 31
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MicrosoftDocs/PowerShell-Docs のほかの issue
-
needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
MicrosoftDocs/PowerShell-Docs#13305 ·
メンテナーはふだん 1 日以内に返信
-
hold-for-pr hold-for-release issue-doc-idea
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
MicrosoftDocs/PowerShell-Docs#13195 ·
メンテナーはふだん 1 日以内に返信
-
hold-for-pr hold-for-release
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
MicrosoftDocs/PowerShell-Docs#12897 ·
メンテナーはふだん 1 日以内に返信
-
Add "Avoid function / scriptblock based recursion" section to `Performance Considerations` documentオープンarea-sdk-docs
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
MicrosoftDocs/PowerShell-Docs#11037 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Peaceオープンneeds-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
MicrosoftDocs/PowerShell-Docs#13309 ·
メンテナーはふだん 1 日以内に返信
MicrosoftDocs/PowerShell-Docs の issue をすべて見る
似ている issue
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
ACK_WAITING HELP_WANTED UPDATE_CS
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
OWASP/CheatSheetSeries#2458 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
l3montree-dev/devguard#3101 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
area/documentation status/need-triage
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
google-gemini/gemini-cli#29548 ·
メンテナーはふだん 1 日以内に返信