fortify / fcli

fcli is a command-line utility for interacting with various Fortify products
https://fortify.github.io/fcli/
Other
31 stars 17 forks source link

`fcli * rest call`: Issues with input and record transformations #355

Closed rsenden closed 1 year ago

rsenden commented 1 year ago

The fcli * rest call commands are expected to do input and record transformation by default, allowing this behavior to be disabled through the --no-transform option. However, there are some issues with this approach:

We can't really fix the first issue in a nice way (we'd need to move all command/entity-specific record transformations to the central product helper). We should however fix the second issue, as users may be interested in seeing the raw response data to access for example the SSC count, responseCode and links properties.

Apart from fixing the above, we may want to allow for extracting arbitrary data from the response using an SpEL expression (allowing to specify a property path, using collection selection/projection, ...).

rsenden commented 1 year ago

Fixed in af5867cf3bbe0a251aa7ad0fb118a844e0bb4e0f