itglue / powershellwrapper

This PowerShell module acts as a wrapper for the IT Glue API.
Apache License 2.0
120 stars 51 forks source link

Functionality to Fetch All Results with Get- Cmdlets #163

Closed oOblik closed 9 months ago

oOblik commented 1 year ago

Addresses #61 with changes to Invoke-ITGlueRequest: Adds -AllResults switch to handle paging and multiple requests to fetch all results with one call.

Adds an -all switch to all applicable Get-* cmdlets. This can be used in unison with -page_size to limit the number of sequential requests to the API.

Ex. Get-ITGlueOrganizations -all -page_size 1000

I have tested all modified cmdlets for functionality and accuracy of returned data.

This also includes an unrelated "typo" fix on Countries.ps1 to -RequestURI, that missed the change to -ResourceURI in refactor.

adrianwells commented 1 year ago

@oOblik Thank you. This seems good. Feel free to update now that #162 is merged.