Skip to content

Instantly share code, notes, and snippets.

@bellons91
Created July 9, 2023 13:49
Show Gist options
  • Save bellons91/10949defe45f187d64449f493606a6f2 to your computer and use it in GitHub Desktop.
Save bellons91/10949defe45f187d64449f493606a6f2 to your computer and use it in GitHub Desktop.
Open all endpoints
$baseUrl ="https://localhost:44383/api/v1";
$pages =
"/league/league-nba",
"/season/dir__league-nba",
"/season/season-nba-55467",
"/team/dir__league-nba",
"/team/team-nba-3422",
"/player/dir__league-nba",
"/player/dir__league-nba/dir__team-nba-3422",
"/player/player-nba-996297",
"/match/dir__league-nba",
"/match/dir__league-nba/dir__season-nba-68176",
"/match/dir__league-nba/dir__season-nba-68176/dir__2020-01-11",
"/match/match-nba-19097560"
;
foreach($p in $pages)
{
$fullUrl = "$($baseUrl)$($p)";
Invoke-Expression “cmd.exe /C start $($fullUrl)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment