Skip to content

support JQ for API response transformation #489

@newgene

Description

@newgene

JMESPath is a query language for JSON, with libraries available in many languages (e.g. javascript and Python).

We can evaluate and consider to use it in api-respone-transform.js sub-module. Potentially remove or simplify the existing hard-coded transformers.

The overall benefits I believe this new feature can bring us:

  • Allow to standardize the API response transformation in a well-defined language, and we can then put it into the SmartAPI metadata, instead of hard-coded API-specific code within the module.
  • Simplify the complexity of the api-respone-transform.js sub-module, since the many transformation logic will be handled by JMESPath module.
  • Support more complex transformation logic if needed.

Metadata

Metadata

Labels

On TestRelated changes are deployed to Test serverenhancementNew feature or requestjq / jmespath

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions