Feedback: Endpoints

Version: 3.3.6

Feedback with endpoints:

  • Tags still dont work

    image

    $Parameters = @{
    	Url            = "/ad/updateuser"
    	Description    = "Updates AD User Object"
    	Method         = @('PUT')
    	Authentication = $true
    	Tag           = @('Dev')
    	Role           = @('Administrator', 'Execute')
    	Path           = "$EndpointRootPath\ActiveDirectory\Edit-ADUser.ps1"
    }
    New-PSUEndpoint @Parameters
    
  • If an endpoint is using Path rather than an endpoint block PSU doesn’t detect file changes and requires you to release the PSU configuration. This makes testing new endpoints from a path a bit painful.

  • Endpoint logs
    image

    • Is there a way to save the endpoint logs? Running into issues with endpoints taking a long time to return data to the caller we would like to start tracking how long it takes for a caller to get a response. Not sure if this is possible from PSU sides.
    • If PSU is read only you cant view endpoint logs from the UI.
  • Also something about the following endpoint is breaking the swagger docs.

$Parameters = @{
	Url            = "/job"
	Description    = "Return given job data"
	Method         = @('GET')
	Authentication = $true
	Role           = @('Administrator', 'Execute')
	Path           = "$EndpointRootPath\job.ps1"
}
New-PSUEndpoint @Parameters

$EndpointRootPath is set as “C:\ProgramData\UniversalAutomation\Repository.universal\Endpoints”

image

1 Like

3.4.0 will include a fix for the tags.

I’ve opened issues for everything else. We currently do not persist or expose the API log at all. It’s stored in memory and sent via web sockets so it’s pretty hard to consume yourself.

1 Like

Thanks