dhanashri-dotcom / CommonAssessmentToolUI

0 stars 0 forks source link

Backend: API to calculate Return-To-Work score #7

Open dhanashri-dotcom opened 1 week ago

dhanashri-dotcom commented 1 week ago

Task: Identify an API that calculates the new Return-To-Work score based on the updated client information. Create placeholder API calls for frontend development if the backend APIs don’t exist yet. Description: Inform the backend team about the api. Add temporary placeholder functions to simulate API interactions to calculate the Return-To-Work score using updated client information and store the new score in the database. Acceptance Criteria:

bonicim commented 1 week ago

Currently the API is calling a real API hosted in AWS. We want the API to call a placeholder "API" that you have built or modified. As a bonus, explore how to configure the frontend to use the placeholder API or real API at "runtime" (hint: environment variables).

mereluo commented 5 days ago

Updated:

Task 1: Design API Endpoint Description: Design the API structure, including the endpoint URLs, HTTP methods, and the request/response body. Ensure the API conforms the REST standards. Acceptance Criteria:

Task2: Create Placeholder Functions for API Simulation Description: Create placeholder API functions to simulate the Return-To-Work score calculation. These functions will return a hardcoded or calculated score until the real API is available. Acceptance Criteria: