Categorygithub.com/KarmaBeLike/time-tracker-api
module
0.0.0-20240709141247-288905e84bf6
Repository: https://github.com/karmabelike/time-tracker-api.git
Documentation: pkg.go.dev

# README

Time Tracker API

This repository implements a Time Tracker API using Go (Golang) with the Gin framework and PostgreSQL database.

Features

User Management

  • Create a new user based on passport number.
  • Retrieve a list of users with optional filters and pagination.
  • Update and delete users by ID.

Task Management

  • Retrieve worklogs (tasks) for a user with optional date range.
  • Start and stop tasks for a user by ID and task ID.

API Endpoints

Users

  • POST /users/ - Create a new user
  • GET /users/ - Get list of users
  • DELETE /users/{userId} - Delete a user
  • PUT /users/{userId} - Update a user

Tasks

  • GET /users/{userId}/tasks?startDate={startDate}&endDate={endDate} - Get list of tasks for a user
  • POST /users/{userId}/tasks/{taskId}/start - Start a task for a user
  • POST /users/{userId}/tasks/{taskId}/stop - End a task for a user

Getting Started

install dependencies:

go mod tidy
  • run project:
go run ./cmd

# Packages

No description provided by the author
No description provided by the author
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
No description provided by the author