You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Update the Flask server to include HTML files from the GCS bucket in the /list-folder-contents/<folder_name> endpoint response. The backend should recognize HTML files, generate public URLs for them, and include these in the response JSON.
Acceptance Criteria:
Modify the process_gcs_directory function to detect HTML files and add them to the response.
Ensure the response JSON includes a path attribute for HTML files containing the public URL.
Make sure HTML files are categorized properly within the relevant monitor lists in the JSON response.
Reason:
Building out the backend first ensures the data is readily available and well-structured for the frontend. This approach helps reduce integration issues later and allows for easier testing and validation of the new functionality.
How to Test:
Run the Flask server.
Use Postman to send a POST request to http://localhost:5000/list-folder-contents/<folder_name>.
Check the JSON response for HTML file details with a valid path.
Test URLs by opening them in a browser to confirm accessibility.
Description:
Update the Flask server to include HTML files from the GCS bucket in the
/list-folder-contents/<folder_name>
endpoint response. The backend should recognize HTML files, generate public URLs for them, and include these in the response JSON.Acceptance Criteria:
process_gcs_directory
function to detect HTML files and add them to the response.path
attribute for HTML files containing the public URL.Reason:
Building out the backend first ensures the data is readily available and well-structured for the frontend. This approach helps reduce integration issues later and allows for easier testing and validation of the new functionality.
How to Test:
http://localhost:5000/list-folder-contents/<folder_name>
.Good Files to Look at for More Information:
DroneWorld\backend\PythonClient\server\simulation_server.py
.The text was updated successfully, but these errors were encountered: