Add-APITCGBaseURI
SYNOPSIS
Sets the base URI for the APITCG API connection
SYNTAX
__AllParameterSets
Add-APITCGBaseURI [[-BaseUri] <string>]
ALIASES
This cmdlet has the following aliases,
- Set-APITCGBaseURI
DESCRIPTION
The Add-APITCGBaseURI cmdlet sets the base URI which is used to construct the full URI for all API calls
APITCG has a single production host (https://api.apitcg.com) which is used when no base URI is defined. A different base URI is only needed for a proxy or a mock server
Only the scheme and host of the URL are kept, the API paths (/api/products, etc.) are part of each function
EXAMPLES
EXAMPLE 1
Add-APITCGBaseURI
The base URI will use https://api.apitcg.com
EXAMPLE 2
Add-APITCGBaseURI -BaseUri 'https://apitcg.gateway.example.org'
The base URI will use https://apitcg.gateway.example.org
EXAMPLE 3
'https://apitcg.gateway.example.org' | Add-APITCGBaseURI
The base URI is passed in from the pipeline and will use https://apitcg.gateway.example.org
PARAMETERS
-BaseUri
Sets the base URI for the APITCG API connection
The URL must use https
Default value: https://api.apitcg.com
Type: System.String
DefaultValue: https://api.apitcg.com
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.String
OUTPUTS
NOTES
N/A