Skip to content

Commit e299e6b

Browse files
Merge pull request #21 from FriedrichWeinmann/development
extended query logic
2 parents d25c960 + 7fbec7b commit e299e6b

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

MiniGraph/MiniGraph.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
RootModule = 'MiniGraph.psm1'
55

66
# Version number of this module.
7-
ModuleVersion = '1.3.16'
7+
ModuleVersion = '1.3.17'
88

99
# Supported PSEditions
1010
# CompatiblePSEditions = @()

MiniGraph/functions/Invoke-GraphRequest.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
99
.PARAMETER Query
1010
The relative graph query with all conditions appended.
11+
Uses the full query if the query starts with http:// or https://.
1112
1213
.PARAMETER Method
1314
Which rest method to use.
@@ -68,6 +69,9 @@
6869
Method = $Method
6970
ContentType = $ContentType
7071
}
72+
if ($Query -match '^http://|https://') {
73+
$parameters.Query = $Query
74+
}
7175
if ($Body) {
7276
if ($Body -is [string]) { $parameters.Body = $Body }
7377
else { $parameters.Body = $Body | ConvertTo-Json -Compress -Depth 99 }

changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.3.17 (2024-03-13)
4+
5+
+ Upd: Invoke-GraphRequest - supports full http links as query
6+
37
## 1.3.16 (2024-03-05)
48

59
+ New: Get-GraphToken - retrieve the currently used token

0 commit comments

Comments
 (0)