Skip to content

Commit

Permalink
Merge pull request #21 from FriedrichWeinmann/development
Browse files Browse the repository at this point in the history
extended query logic
  • Loading branch information
FriedrichWeinmann authored Mar 13, 2024
2 parents d25c960 + 7fbec7b commit e299e6b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MiniGraph/MiniGraph.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
RootModule = 'MiniGraph.psm1'

# Version number of this module.
ModuleVersion = '1.3.16'
ModuleVersion = '1.3.17'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
4 changes: 4 additions & 0 deletions MiniGraph/functions/Invoke-GraphRequest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.PARAMETER Query
The relative graph query with all conditions appended.
Uses the full query if the query starts with http:// or https://.
.PARAMETER Method
Which rest method to use.
Expand Down Expand Up @@ -68,6 +69,9 @@
Method = $Method
ContentType = $ContentType
}
if ($Query -match '^http://|https://') {
$parameters.Query = $Query
}
if ($Body) {
if ($Body -is [string]) { $parameters.Body = $Body }
else { $parameters.Body = $Body | ConvertTo-Json -Compress -Depth 99 }
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.3.17 (2024-03-13)

+ Upd: Invoke-GraphRequest - supports full http links as query

## 1.3.16 (2024-03-05)

+ New: Get-GraphToken - retrieve the currently used token
Expand Down

0 comments on commit e299e6b

Please sign in to comment.