Get-APITCGTcg
SYNOPSIS
List all TCGs / Get a TCG by ID
SYNTAX
Index (Default)
Get-APITCGTcg [-Limit <int>] [-SortBy <string>] [-SortOrder <string>] [-Raw]
ById
Get-APITCGTcg [-Id] <string> [-Raw]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
Parameter set [ Index ] - The Get-APITCGTcg cmdlet invokes the GET method of the /api/tcgs endpoint (List all TCGs)
Returns the list of registered trading card games. Each TCG’s ‘_id’ is its slug, used across the other routes.
Parameter set [ ById ] - The Get-APITCGTcg cmdlet invokes the GET method of the /api/tcgs/{id} endpoint (Get a TCG by ID)
Returns a TCG by its ‘_id’ (slug).
The list of trading card games is not paged
EXAMPLES
EXAMPLE 1
Get-APITCGTcg
Returns the result of the /api/tcgs endpoint
EXAMPLE 2
Get-APITCGTcg -Id 'one-piece'
Returns the result of the /api/tcgs/{id} endpoint
PARAMETERS
-Id
TCG slug.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- _id
ParameterSets:
- Name: ById
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Limit
Maximum number of results to return (1-100).
Default value: 25
Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Index
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Raw
Returns the full API response (success, data, total, & fallback) instead of only the data
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-SortBy
Field to sort the results by.
Default value: name
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Index
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-SortOrder
Sort direction.
Default value: asc
Allowed values: ‘asc’, ‘desc’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Index
Position: Named
IsRequired: false
ValueFromPipeline: false
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
Endpoint : GET /api/tcgs Endpoint : GET /api/tcgs/{id}