Endpoints
Endpoint configuration for Universal APIs.
New-PSUEndpoint -Url '/endpoint' -Method 'GET' -Endpoint {
"Hello, world!"
}Invoke-RestMethod http://localhost:5000/endpointVariable URL
New-PSUEndpoint -Url '/user/:id' -Method 'GET' -Endpoint {
Get-User -Id $Id
}Invoke-RestMethod http://localhost:5000/user/123Query String Parameters
New-PSUEndpoint -Url '/user' -Method 'GET' -Endpoint {
Get-User -Id $Id
}Body
Form Data
Param Block
Returning Data
Processing Files
Uploading Files
Downloading Files
Returning Custom Responses
Persistent Runspaces
Related Cmdlets
Last updated
Was this helpful?