Skip to content

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

@rsenden

Description

@rsenden

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}

Metadata

Metadata

Assignees

Labels

effort:lowEasy to implement/fixfcli-actionsfeatureA feature that's on the roadmap or in developmentprio:mediumMedium priority

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions