KUHA-REST-API

module
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2026 License: MIT

README

KUHA REST API Go Report Card Audit Version

Centralized API for the KUHA program (sports and wellbeing data ecosystem). The service unifies data from multiple provider databases into a single access point.

Context

  • Program: KUHA (Kainuu Program for Sports and Well-being Data Analytics) in collaboration with CSC, University of Jyväskylä, KAMK, Finnish Olympic Committee, and others.
  • Mission: Collect, integrate, and expose sports and wellbeing data through one API to enable data-driven coaching, research, and visualizations.
  • Hosting: Provider databases are hosted in CSC infrastructure; this API brokers access and unifies schemas (“one API to rule them all”).

Data domains supported

  • Competition data (FIS results, rankings, events)
  • Wearables and athlete monitoring (Garmin, Oura, Suunto, Polar via UTV)
  • Training diaries and questionnaires (e.g., Tietoevry 360, KAMK forms)
  • Performance testing (K-Lab, Coachtech/Vuokatti Sport test center)
  • Motion analytics (Archinisis)
  • Auth service for issuing access and refresh tokens

Project layout

  • cmd/api: HTTP server, routing, middleware, and handlers for each data domain/provider.
  • cmd/migrate: SQL migrations and seeding entrypoint.
  • internal: shared packages (DB connections, auth, caching, logging, rate limiting, stores).
  • docs: Swagger definitions and generated artifacts.

Directories

Path Synopsis
cmd
api command
migrate/seed command
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
internal
db
env

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL