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

Provide raw access to result of shared snippet #126

Open
sneumann opened this issue Sep 26, 2022 · 2 comments
Open

Provide raw access to result of shared snippet #126

sneumann opened this issue Sep 26, 2022 · 2 comments

Comments

@sneumann
Copy link

Hi, it would be great to provide a link to the the raw result for a shared snippet.
Then something like
https://jqplay.org/s/MyShArEdSnIpPeT?result
or
https://jqplay.org/s/MyShArEdSnIpPeT/result
could return the resulting JSON, so that I can in turn submit this URL to e.g. a validator service.
I was unable to find the call where the content of the component viewing the result was obtained, maybe that would already help me ?
Yours, Steffen

@owenthereal
Copy link
Owner

What do you mean by “raw result”? Are you referring to an API endpoint that returns the result directly instead of rendering it in the UI? Could you clarify your use case?

@sneumann
Copy link
Author

Hi, thanks for checking back.

Currently, if I do some jq on some input json, I get the result in the output box, and with a shared snippet I can send a link to what I did to someone else.

For validation I can copy&paste the output to, e.g. some validator. Some json validators can also take a URL
and fetch the JSON from there directly. My request is a bit like github showing you a file in the web UI
https://github.com/owenthereal/jqplay/blob/main/Dockerfile
and getting the same raw file through
https://raw.githubusercontent.com/owenthereal/jqplay/refs/heads/main/Dockerfile

The use case would be to access the result of a shared snippet
through a URL like https://jqplay.org/s/MyShArEdSnIpPeT/result
and pass that to e.g. https://fair-checker.france-bioinformatique.fr/check
(I don't fully remember if the fair-checker was the validator I had in mind when creating this issue, but this showcases the usecase I had in mind).

Yours,
Steffen

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

No branches or pull requests

2 participants