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

Question: Why do so many API requests seem to respond with unnecessary responses causing extra bandwidth usage? #3769

Closed
MV-GH opened this issue Jul 29, 2023 · 4 comments
Labels

Comments

@MV-GH
Copy link
Contributor

MV-GH commented Jul 29, 2023

Question

Why do so many API requests seem to respond with unnecessary responses?

I'll give you a few examples:

  • If you fetch the comments to a post, it will also include the community and the post it was commented in for each comment. I have this information already from fetching the post.
  • When requesting your private_messages, it will include the recipient per pm, I am the recipient, I don't need this information. (same goes for mentions and replies)
  • user/mark_all_as_read the endpoint that marks all unread mentions/replies/messages as read will also return all the replies. Why does it return the replies and why does it only return the replies?

So many responses include the full objects where a simple id for that object suffices. And sometimes like in the cases above, that id imo is not even needed.

@MV-GH MV-GH changed the title Question: Why do so many API requests seem to respond with unnecessary responses causing unneccessary bandwith usage? Question: Why do so many API requests seem to respond with unnecessary responses causing unneccessary bandwidth usage? Jul 29, 2023
@MV-GH MV-GH changed the title Question: Why do so many API requests seem to respond with unnecessary responses causing unneccessary bandwidth usage? Question: Why do so many API requests seem to respond with unnecessary responses causing extra bandwidth usage? Jul 29, 2023
@RocketDerp

This comment was marked as abuse.

@lionirdeadman lionirdeadman added the type: question General question label Jul 29, 2023
@Nutomic
Copy link
Member

Nutomic commented Aug 2, 2023

If there is unnecessary data we can definitely get rid of it for the next major version. Pull requests welcome.

@Nutomic
Copy link
Member

Nutomic commented Oct 20, 2023

Some are fixed here: #4058

@Nutomic
Copy link
Member

Nutomic commented Sep 20, 2024

Closing this as the question has been answered. Also see #2957

@Nutomic Nutomic closed this as completed Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants