NetboxPS/Functions/Setup/Support/Get-NetboxAPIDefinition.ps1

16 lines
468 B
PowerShell
Raw Normal View History

2022-12-06 13:34:52 -05:00

function Get-NetboxAPIDefinition {
2021-07-22 11:39:39 -04:00
[CmdletBinding()]
param ()
2021-07-22 11:39:39 -04:00
#$URI = "https://netbox.neonet.org/api/docs/?format=openapi"
2021-07-22 11:39:39 -04:00
$Segments = [System.Collections.ArrayList]::new(@('docs'))
2021-07-22 11:39:39 -04:00
$URIComponents = BuildURIComponents -URISegments $Segments -ParametersDictionary @{'format' = 'openapi' }
2021-07-22 11:39:39 -04:00
$URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters -SkipConnectedCheck
2021-07-22 11:39:39 -04:00
InvokeNetboxRequest -URI $URI
}