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

API: Distinguish spent & earned at /v2/chart/category/dashboard (or future v2/categories) #8345

Open
3 tasks done
dreautall opened this issue Jan 3, 2024 · 1 comment
Open
3 tasks done
Labels
enhancement Requests for enhancements of existing stuff.

Comments

@dreautall
Copy link

Support guidelines

Description

I want to build a page which lists all categories (and the "no category" 'category') and their values during a given timespan.

v1/categories looks like the ideal candidate, however you are not able to supply a date and earned and spent are always empty. This leaves no good options:

  1. Make a single API call for every category to query the category details, making N api calls.
  2. Make a total of 4 API calls to v1/insight/income/category, v1/insight/income/no-category, v1/insight/expense/category, v1/insight/expense/no-category

Solution

Looking at the v2 API /v2/chart/category/dashboard looks like it could almost do what I want in a single call. The only thing missing is that it only reports a sum, not spent & earned separately.

Since the v1 api calls distinguish between spent & earned, would it be possible to add those details to that result? Or, if not, would it be possible to get a way to fill-in spent & earned for a future v2/categories call?

Thank you!

What are alternatives?

No response

Additional context

No response

@dreautall dreautall changed the title API: Distinguish spent & earned at /v2/chart/category/dashboard API: Distinguish spent & earned at /v2/chart/category/dashboard (or future v2/categories) Jan 3, 2024
@JC5 JC5 added the enhancement Requests for enhancements of existing stuff. label Jan 4, 2024
Copy link
Contributor

github-actions bot commented Jan 4, 2024

Hi there! This is an automatic reply. Share and enjoy

This issue has been marked as an enhancement. The requested enhancement to an existing feature will become a part of Firefly III or the data importer in due course.

If you come across this issue, please be aware there is NO need to reply with "+1" or "me too" or "I need this too" or whatever. Such comments are not helpful, and do not influence the roadmap. Your comment may be 💀 deleted. You can subscribe to this issue to get updates.

Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests for enhancements of existing stuff.
Projects
Status: To do
Development

No branches or pull requests

2 participants