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

30 lines
933 B
PowerShell
Raw Normal View History

<#
2021-07-22 11:39:39 -04:00
.NOTES
===========================================================================
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2020 v5.7.174
Created on: 4/28/2020 11:57
Created by: Claussen
Organization: NEOnet
Filename: Get-NetboxAPIDefinition.ps1
===========================================================================
.DESCRIPTION
A description of the file.
#>
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
}