Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: JSON API endpoint for reports #4360

Open
YpeZ opened this issue Oct 15, 2024 · 0 comments · May be fixed by #4410
Open

feat: JSON API endpoint for reports #4360

YpeZ opened this issue Oct 15, 2024 · 0 comments · May be fixed by #4410
Assignees
Labels
enhancement New feature or request

Comments

@YpeZ
Copy link
Contributor

YpeZ commented Oct 15, 2024

demo:

  • can download the report result as json

acc:

  • when result of the sql is tabular then convert that to json
  • when fields in the result set are of type JSON than ensure that is proper json instead of a big string

Is your feature request related to a problem? Please describe.
It is possible to export reports to Excel and zip formats, but not to JSON. See: https://emx2.dev.molgenis.org/catalogue/reports/#/0

Describe the solution you'd like
The option to click a JSON button and the possibility to fetch a url like /catalogue/api/reports/json?id=0

Describe alternatives you've considered
Mangle the GraphQL response that is used to populate the table presented on the report page

Additional context
A new API for JSON output will be required to address this properly

@YpeZ YpeZ added the enhancement New feature or request label Oct 15, 2024
@mswertz mswertz changed the title JSON API endpoint for reports feat: JSON API endpoint for reports Oct 15, 2024
@harmbrugge harmbrugge linked a pull request Oct 29, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants