diff --git a/CHANGELOG.md b/CHANGELOG.md index 480d8d9..4f8950c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) +## [0.5.2] - 2025-09-08 + +### Fixed + +- Added 'post' to methods for pagination in Invoke-IDNWRestMethod ([#45](https://github.com/EUCTechTopics/PSIdentityNow/pull/45)) + +[0.5.2]: https://github.com/EUCTechTopics/PSIdentityNow/releases/tag/v0.5.2 + ## [0.5.1] - 2025-04-10 ### Fixed @@ -77,4 +85,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Initial Version \ No newline at end of file +- Initial Version diff --git a/PSIdentityNow/PSIdentityNow.psd1 b/PSIdentityNow/PSIdentityNow.psd1 index f02e9c9..770a4f3 100644 --- a/PSIdentityNow/PSIdentityNow.psd1 +++ b/PSIdentityNow/PSIdentityNow.psd1 @@ -12,7 +12,7 @@ RootModule = 'PSIdentityNow.psm1' # Version number of this module. - ModuleVersion = '0.5.1' + ModuleVersion = '0.5.2' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -128,4 +128,4 @@ # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' -} \ No newline at end of file +} diff --git a/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 b/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 index 8f32410..b77b600 100644 --- a/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 +++ b/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 @@ -112,7 +112,7 @@ function Invoke-IDNWRestMethod { # Pagination loop do { # Combine parameters into query string - if ($Method -eq "GET") { + if ($Method -in @("GET","POST")) { $queryString = ($UrlParams.GetEnumerator() | ForEach-Object { [string]::Format("{0}={1}", $_.Key, [uri]::EscapeUriString($_.Value)) }) -join "&" @@ -226,4 +226,4 @@ function Invoke-IDNWRestMethod { # Return all results Remove-Variable -Name Headers -Force Write-Output $AllResults -} \ No newline at end of file +}