I’m still extremely new to PowerShell Universal and I’m trying to get a handle on things still but the below seems like it should be pretty straight forward but isn’t working as expected. A simple Endpoint is created with a variable URL in a persistent environment.
Executing the following Invoke-RestMethod returns ‘testvalue1’ as expected
Invoke-RestMethod -uri 'https://localhost:5000/test/testvalue1' -method GET
Running the same command again with a value of testvalue2 returns ‘testvalue1’ again however. Nothing entered as a value for ‘test’ variable is returned. Its always the first value that was submitted until the environment is restarted.
Am I misunderstaing or just doing something wrong?
I’ve tried using parameters, submitting as Body isntead of Variable URL and nothing I seem to do will ever overwrite the first submitted value to the endpoint.
I was really hoping to hear if this was something that I was just doing wrong or if this was a legit issue that needs to be addressed.
I’m still doing “Hello World” style tests just to get familiar and make sure my understanding of the pieces and parts are correct and I’m hesitant to move on to more complicated tasks until I’m sure that the basics are working properly.
Does anyone have any feedback they can give me on this? Should this work or am I just doing it wrong?