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

Default API view - Suggestion #483

Open
mrbusysky opened this issue Oct 30, 2021 · 2 comments
Open

Default API view - Suggestion #483

mrbusysky opened this issue Oct 30, 2021 · 2 comments

Comments

@mrbusysky
Copy link

mrbusysky commented Oct 30, 2021

Would really be nice if people could set their default view to JSON.

I just feel loading the HTML is a waste of time and resources.

@mrbusysky mrbusysky changed the title Default API view Default API view - suggestion Oct 30, 2021
@mrbusysky mrbusysky changed the title Default API view - suggestion Default API view - Suggestion Oct 30, 2021
@manishram
Copy link

One can just do this: http://54.183.16.194/bank_transactions?format=json to get the JSON.

@mrbusysky
Copy link
Author

mrbusysky commented Nov 2, 2021

One can just do this: http://54.183.16.194/bank_transactions?format=json to get the JSON.

Correct but, normal users going to your server can bog it down. Technically it could be used to make someone's server transactions slower because loading html/css/js is a lot more than just loading some json. Almost no chains provide a HTML view for API and because our chain is so fast it can have an effect on the chain speed for the top nodes.

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