This pull request introduces a new endpoint /timestamp that returns the current timestamp in ISO format. A corresponding test case has also been added to ensure the endpoint's functionality.
Changes:
Added datetime import in root.py.
Implemented get_timestamp function in root.py.
Added a new route for the /timestamp endpoint.
Added a test case test_get_timestamp in tests/test_api.py.
This implementation follows the plan discussed and approved by the team.
This pull request introduces a new endpoint
/timestamp
that returns the current timestamp in ISO format. A corresponding test case has also been added to ensure the endpoint's functionality.Changes:
datetime
import inroot.py
.get_timestamp
function inroot.py
./timestamp
endpoint.test_get_timestamp
intests/test_api.py
.This implementation follows the plan discussed and approved by the team.