Learn the basics of RESTful APIs
This is a basic overview of APIs. We will look at the following topics:
New-PSUEndpoint -Url "/basic" -Endpoint { "Hello" } New-PSUEndpoint -Url "/post" -Method "POST" -Endpoint { $Body } New-PSUEndpoint -Url "/route/:name" -Endpoint { param($name) $Name } New-PSUEndpoint -Url "/query" -Endpoint { param($FromQuery) $FromQuery } New-PSUEndpoint -Url "/headers" -Endpoint { $Headers } New-PSUEndpoint -Url "/error" -Endpoint { Write-Error 'error' } -ErrorAction "Stop"