Open RoelCrabbe opened 1 week ago
I've assigned this task to you, Yasir. I understand this may be challenging, but you have one week to complete it. Try to rely more on your intuition and experience than usual rather than using external assistance extensively. Key Steps
Service Development: Start by building a service layer where the main logic will reside. Use the userId as needed for now; we’ll integrate proper security measures later. Ensure thorough testing of this service to confirm functionality and accuracy.
API Endpoint Creation: After completing the service, create an API endpoint and test it rigorously. Focus on verifying that the response format is accurate and consistent. Test exclusively using Swagger, including detailed documentation for the endpoint.
This feature is central to our visual design and a high-priority component, so ensure it's robust and reliable. Let me know when issues or problem occour
After creating time blocks, we need a way to display them to the user, leveraging the designs we submitted earlier.
To achieve this, we’ll need an API endpoint that can return a range of workdays, specified by a start and end date. This API should provide a consistent sequence of workdays across the given range. This will help with the future pagination.
However, there are some challenges to address. For example, if a user hasn't logged any activity on a particular day, our backend should generate a “ghost” workday. This ghost workday would be a placeholder populated with sample data for display purposes only and would not be saved to our database.