Open OmidKhodaparast2002 opened 6 days ago
For now I have used 2-second intervals for receiving data. But this can be changed based on our needs
As we have not received data from the backend yet, I used the TestApiEndpoints file to simulate data fetching and print the results to the console. This was to verify that the data fetching works as expected.
The data was successfully fetched.
I plan to delete this file and its related commands now that the test has passed to maintain clean code. However, feel free to refer to it in the future for testing purposes if needed.
Currently, we have placeholder values for the patient, data category, and a 2-second time interval for fetching the data. The time interval can be adjusted later as needed. Otherwise, everything is functioning correctly.
User Story
As a doctor,
I want the front-end to receive the data for the patient from the back-end,
so that I can plot them for visualisation and inspection.
Acceptance Criteria
GET
request to/api/v1/patients/:id/<data-category>
. Note that the Part/api/v1
shall already be configured in axios configuration inApi.tsx
.Additional Information
json
object and this can shall be saved for plotting.Notes