diff --git a/demos/rest/curlDemo.txt b/demos/rest/curlDemo.txt index cca7dd61a..eff97d7e9 100644 --- a/demos/rest/curlDemo.txt +++ b/demos/rest/curlDemo.txt @@ -3,7 +3,7 @@ # get the json from the repo api and assign it to the txt file # This grads the json file from the API -curl -u https://api.github.com/repos/maertend/opstest > outputtest.txt +curl -u > outputtest.txt # Reformats the json block to proper json (removes the newlines) string=$(cat temp.txt) @@ -17,4 +17,4 @@ string2=${string/$find/$replace} echo $string2 > output.txt # Post the updated JSON data to the repo -curl -u https://api.github.com/repos/maertend/opstest --data @output.txt \ No newline at end of file +curl -u --data @output.txt \ No newline at end of file diff --git a/demos/rest/rest.ps1 b/demos/rest/rest.ps1 index b478ed2da..196ccca75 100644 --- a/demos/rest/rest.ps1 +++ b/demos/rest/rest.ps1 @@ -14,7 +14,7 @@ $headers = @{ Authorization = $basicAuthValue } # Changing the status of a Private GitHub repository to Public # URL to PowerShell Github Repo -$PowerShellGithubUri = 'https://api.github.com/repos/maertend/opstest' +$PowerShellGithubUri = '' # Get the blob from the Github API as a PS object $JsonBlock = Invoke-RestMethod -Uri $PowerShellGithubUri -Headers $headers