microsoft/PowerShellForGitHub

Update Invoke-GHRestMethodMultipleResult to take a body

开放

#290 创建于 2020年9月27日

 (6 条评论) (0 个反应) (0 位负责人)PowerShell (189 个派生)auto 404
enhancementgood first issuehelp wantedup for grabs

仓库指标

星标
 (635 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Feature Idea Summary

When writing up the workaround for #289, I realized that there are GET API's which may have multiple pages of results where we need to send a body. Therefore, Invoke-GHRestMethodMultipleResult needs to be updated to take in a body, just like Invoke-GHRestMethod.

Feature Idea Additional Details

An alternate approach to this would be to make Invoke-GHRestMethod the common entry-point for both single and multi-page results, and have its internal implementation simply call out to two different internal-only helper methods. Get methods could always call into the "multi-result" internal helper, because that would work fine even for a result with a single-page.

Requested Assignment

I'm leaving this open for someone else to tackle. If no-one expresses interest in the next week or so, I'll take it on myself.

Operating System

OsName               : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture       : 64-bit
WindowsVersion       : 2004
WindowsBuildLabEx    : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.19041.1
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module Version

Running: 0.15.1
Installed:

贡献者指南