mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 09:52:29 +00:00
15 lines
468 B
PowerShell
15 lines
468 B
PowerShell
|
|
function Get-NetboxAPIDefinition {
|
|
[CmdletBinding()]
|
|
param ()
|
|
|
|
#$URI = "https://netbox.neonet.org/api/docs/?format=openapi"
|
|
|
|
$Segments = [System.Collections.ArrayList]::new(@('docs'))
|
|
|
|
$URIComponents = BuildURIComponents -URISegments $Segments -ParametersDictionary @{'format' = 'openapi' }
|
|
|
|
$URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters -SkipConnectedCheck
|
|
|
|
InvokeNetboxRequest -URI $URI
|
|
}
|