Skip to content

Add a new GET endpoint that returns the current server time #2

@sweetlife999

Description

@sweetlife999

Expand your FastAPI app with a new endpoint /time that returns the current server time in ISO8601 format as JSON (e.g. { "time": "2026-04-01T12:00:00" }).

Tips:

  • Use Python's datetime module to get the current time.
  • Return the response as a dictionary.

Label this as a 'good first issue' and 'help wanted'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions