Harshavarma: Created an analytics api for fetching job hits#1882
Harshavarma: Created an analytics api for fetching job hits#1882one-community merged 2 commits intodevelopmentfrom
Conversation
Anusha-Gali
left a comment
There was a problem hiding this comment.
Hi Harsha,
I have reviewed your PR locally and it works as per the requirement except for the optional query parameters as mentioned in the Endpoint: GET /analytics/role-hits-applications
Query Parameters:
startDate (optional): Date range start.
endDate (optional): Date range end.
roles (optional): Specific roles to filter.



There was a problem hiding this comment.
Hello Harsha,
I have reviewed your PR and tested both frontend and backend. I tested the API endpoint using the Postman and it returned the expected results.

Please find comments related to frontend in #4325
|
|
Thank you all, merging! |






Description
An analytics chart that displays the number of hits and applications for each role, with options to filter by date range and specific roles.

Related PRS (if any):
To test this backend PR, you need to checkout the 4325 frontend PR.
Main changes explained:
Created the following files:
/analytics/job-hits-and-applicationsroute to fetch data using the controller’s business logic./analytics/job-hits-and-applications.How to test:
npm install,npm run build, andnpm startto run this PR locallyhttp://localhost:4500/api/loginhttp://localhost:4500/api/analytics/job-hits-and-applicationsScreenshots or videos of changes:
role_fetch_issue_video.mp4
Note:
Let me know your inputs, comments, or suggestions for improvement.