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

Store Aggregate API #26

Closed
5 tasks done
Evanlab02 opened this issue Dec 28, 2023 · 0 comments · Fixed by #66
Closed
5 tasks done

Store Aggregate API #26

Evanlab02 opened this issue Dec 28, 2023 · 0 comments · Fixed by #66
Assignees
Labels
enhancement New feature or request

Comments

@Evanlab02
Copy link
Owner

Evanlab02 commented Dec 28, 2023

Description

Implement an API endpoint that will return a result that contains some aggregated data on stores. This can be done for a specific user or all users stores. Example response body below:

{
  "total_stores": 6,
  "online_stores": 1,
  "in_store_stores": 2,
  "combined_stores": 3,
  "combined_online_stores": 4,
  "combined_in_store_stores": 5
}

Acceptance Criteria

  • '/api/v1/stores/aggregate' endpoint exists and can be reached.
  • API response matches or closely resembles above example.
  • Store repo contains aggregate function.
  • Store service contains aggregate function.
  • Store router contains aggregate endpoint.
@Evanlab02 Evanlab02 self-assigned this Dec 28, 2023
@Evanlab02 Evanlab02 added the enhancement New feature or request label Dec 28, 2023
@Evanlab02 Evanlab02 added this to the Release 0.14.0 milestone Dec 28, 2023
@Evanlab02 Evanlab02 linked a pull request Jan 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant