Skip to content

[FEATURE] Add JSON Datasource and Json Query plugin - #770

Draft
adrianSepiol wants to merge 1 commit into
perses:mainfrom
adrianSepiol:feature/json-datasource-plugin
Draft

[FEATURE] Add JSON Datasource and Json Query plugin#770
adrianSepiol wants to merge 1 commit into
perses:mainfrom
adrianSepiol:feature/json-datasource-plugin

Conversation

@adrianSepiol

Copy link
Copy Markdown
Contributor

Related issue: perses/perses#3284
Depends on:

Description

Adds json datasource and query plugin. It allows to query any endpoint that returns json and optionally parse output with jsonata. This MVP allows for:

  • querying data with GET
  • querying data with post with json body
  • adding query params
  • using variables in path, body and request params
  • using result with Table plugin

Limitations:

  • using variables in jsonata expression is not allowed as it conflicts with its syntax
  • only json body is allowed for post call

Screenshots

Datasource editor:

Screenshot 2026-08-17 at 12 03 37

Query plugin for GET:

Screenshot 2026-08-17 at 12 06 09

Query Plugin for POST:
Screenshot 2026-08-17 at 12 09 04

Query with request params:
Screenshot 2026-08-17 at 12 26 06

Query with body:
Screenshot 2026-08-17 at 12 28 35

Error for empty response:

Screenshot 2026-08-17 at 12 31 41

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.

Signed-off-by: Adrian Sepiół <a.sepiol@sap.com>
[FEATURE] Change JsonData type from any to unknown

Signed-off-by: Adrian Sepiół <a.sepiol@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant