Skip to content

Conversation

@memowe
Copy link
Owner

@memowe memowe commented Nov 4, 2025

  • Simple first version
  • Add OpenAPI
  • Add OpenAPI GUI

Closes #10

@memowe memowe self-assigned this Nov 4, 2025
@memowe
Copy link
Owner Author

memowe commented Nov 4, 2025

At the moment liblzma-dev seems to be missing and thus failing the pipeline

@memowe memowe marked this pull request as ready for review November 4, 2025 16:40
@memowe memowe requested a review from Copilot November 4, 2025 16:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new REST API server (t4-api) to the terminal time tracking tool, providing read-only access to tracking data with OpenAPI/Swagger documentation support.

  • Adds a new executable t4-api that serves a REST API with OpenAPI specification and Swagger UI
  • Includes static file serving capability for HTML reports
  • Updates CI workflow to install required system dependencies for building the new API server

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
terminal-time-tracking-tool.cabal Adds t4-api executable configuration with servant dependencies and data-files directive for static assets
exe-t4-api/API.hs Implements the API server with endpoints for clocks, categories, and tags, plus OpenAPI/Swagger UI integration
exe-t4-api/static/report.html Adds placeholder HTML file for static content serving
.github/workflows/haskell-ci.yml Installs liblzma-dev and pkg-config dependencies needed for building new API dependencies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@memowe memowe merged commit 3e2ede7 into main Nov 4, 2025
2 checks passed
@memowe memowe deleted the web-api branch November 4, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a simple REST API

2 participants