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

Should be able to copy the request payload in json format #51

Open
ajcastro opened this issue Feb 10, 2021 · 2 comments
Open

Should be able to copy the request payload in json format #51

ajcastro opened this issue Feb 10, 2021 · 2 comments

Comments

@ajcastro
Copy link

ajcastro commented Feb 10, 2021

First of all, I would like to greet and thanks to the team of Enlighten... its workflow is the best!

I realized it is good if we also have a json version (or javascript object) of the request payload.
This lets the front-end guys to copy the json format and easily start to build a request payload object in their code.
Also this is also helpful to copy-paste sample data into Postman.

Please take note that json format and javascript objects are not totally the same, so there would be additional two formats.

Maybe we can have a toggle button whether we want to display the request payload in either html table(currently available), json or javascript code. I guess the json is the best default presentation.

Image of sample request payload presented in html table:
image

@ajcastro
Copy link
Author

It is also good to have json/javascript object presentation for the query parameters.

@sileence
Copy link
Member

Hi @ajcastro, we'd have a look at that feature. It sounds interesting. If you'd like to contribute you can also:

Submit a pull request with the new feature or sponsor us in GitHub: https://github.com/sponsors/sileence

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants