Add-BirdWeatherBaseURI
SYNOPSIS
Sets the base URI for the BirdWeather API connections
SYNTAX
CustomUri (Default)
Add-BirdWeatherBaseURI [[-BaseURI] <string>]
ALIASES
This cmdlet has the following aliases,
- Add-BirdWeatherGraphQLBaseURI
- Add-BirdWeatherRESTBaseURI
- Add-BWBaseURI
- Add-BWGBaseURI
- Add-BWRBaseURI
- Set-BirdWeatherBaseURI
- Set-BWBaseURI
DESCRIPTION
The Add-BirdWeatherBaseURI cmdlet sets the base URI which is used to construct the full URI for all REST & GraphQL API calls
The base URI is the host. The REST URI (/api/v1) & the GraphQL URI (/graphql) are created from it, a REST or GraphQL url is accepted & is converted to the host
By default the BirdWeather production API is used: https://app.birdweather.com
EXAMPLES
EXAMPLE 1
Add-BirdWeatherBaseURI
The base URI will use https://app.birdweather.com
EXAMPLE 2
Add-BirdWeatherBaseURI -BaseURI 'https://myapi.gateway.celerium.org/'
The base URI will use https://myapi.gateway.celerium.org
EXAMPLE 3
'https://app.birdweather.com/api/v1' | Add-BirdWeatherBaseURI
The base URI is passed in from the pipeline & is converted to https://app.birdweather.com
PARAMETERS
-BaseURI
Sets the base URI for the BirdWeather API connections
The base URI must be an absolute https url, a trailing slash, /api/v1, & /graphql are removed
Default value: https://app.birdweather.com
Type: System.String
DefaultValue: https://app.birdweather.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
The Add-BirdWeatherRESTBaseURI & Add-BirdWeatherGraphQLBaseURI cmdlets of the Celerium.BirdWeatherREST & Celerium.BirdWeatherGraphQL modules are aliases of this cmdlet