2
Invoke-WebRequestとInvoke-RestMethodの違いは何ですか?
Invoke-WebRequestPowerShellからRESTベースのAPIにリクエストを投稿するのに成功しています。 Invoke-WebRequest -UseBasicParsing https://my-rest-api.com/endpoint -ContentType "application/json" -Method POST -Body $json 今日、私は自分がやってInvoke-RestMethodいることにより適切な名前が付けられていることに気付きました。違いは何ですか?一方を使用する理由はありますか?
24
windows
powershell
http
web
api