fcli icon indicating copy to clipboard operation
fcli copied to clipboard

`fcli * action`: Add paging & transformation capabilities to custom request targets

Open rsenden opened this issue 1 year ago • 0 comments

The addRequestTargets instruction currently doesn't allow for configuring paging-related functionality or generic input transformations. We should add configuration properties, for example based on SpEL expressions that given a full response (headers, body, ...) can extract the next page URL, or given the full response body, can extract a particular property. For example:

addRequestTargets:
  - name: github
     baseUrl: ...
     headers: ...
     nextPage: ${headers['Link'].next} # Given that this is a composite header, we'd need some easy way to extract the `rel="next"` element
     transform: ${body.data}

rsenden avatar May 21 '24 12:05 rsenden