2022-12-06 13:34:52 -05:00
|
|
|
|
|
2021-03-25 16:52:08 -04:00
|
|
|
|
function Get-NetboxAPIDefinition {
|
2021-07-22 11:39:39 -04:00
|
|
|
|
[CmdletBinding()]
|
|
|
|
|
|
param ()
|
2021-07-21 22:22:28 +02:00
|
|
|
|
|
2021-07-22 11:39:39 -04:00
|
|
|
|
#$URI = "https://netbox.neonet.org/api/docs/?format=openapi"
|
2021-07-21 22:22:28 +02:00
|
|
|
|
|
2021-07-22 11:39:39 -04:00
|
|
|
|
$Segments = [System.Collections.ArrayList]::new(@('docs'))
|
2021-07-21 22:22:28 +02:00
|
|
|
|
|
2021-07-22 11:39:39 -04:00
|
|
|
|
$URIComponents = BuildURIComponents -URISegments $Segments -ParametersDictionary @{'format' = 'openapi' }
|
2021-07-21 22:22:28 +02:00
|
|
|
|
|
2021-07-22 11:39:39 -04:00
|
|
|
|
$URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters -SkipConnectedCheck
|
2021-07-21 22:22:28 +02:00
|
|
|
|
|
2021-07-22 11:39:39 -04:00
|
|
|
|
InvokeNetboxRequest -URI $URI
|
2021-03-25 16:52:08 -04:00
|
|
|
|
}
|