BuildForSDGCohort2 / BuildForSDGCohort2/Team-023-Backend

Dashboard route - loan application status

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
backend enhancement
Dominant language
JavaScript
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Create a `/dashboard/loan-application-status` route to obtain data for the DonutChart component including:
* number of pending applications
* number of approved applications
* number of rejected applications

in proportions per 100 for a given period (today, lastweek, lastmonth) and in an array `[25, 65, 10]`

It should be a GET method and should have the following query params:
* period
* id
* token

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the server route entry point for `/dashboard/loan-application-status` and inspect how existing GET routes handle `period`, `id`, and `token`. Done means the route returns pending, approved, and rejected application proportions in the requested array format for today, lastweek, and lastmonth.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.