← Back to Main Site

ML Engineering Showcase - API Documentation

Event Service API

Real-time event processing and analytics service for tracking user interactions and system events.

GET /api/events

Retrieve the latest 100 events from the system

Try it →
[
  {
    "id": 1,
    "user_id": "user_001",
    "event_type": "page_view",
    "timestamp": "2025-07-04 04:34:14",
    "context": {"page": "homepage"},
    "metadata": {}
  },
  ...
]
POST /api/events

Create a new event in the system

Request Body:
{
  "user_id": "user_123",
  "event_type": "purchase",
  "context": {"amount": 99.99},
  "metadata": {"source": "mobile"}
}

Response:
{
  "id": 4,
  "status": "created"
}

Feature Store API

Centralized feature management system for ML models with versioning and lineage tracking.

GET /api/features

List all available features in the feature store

Try it →
[
  {
    "id": 1,
    "name": "user_age",
    "feature_group": "demographics",
    "data_type": "int",
    "description": "",
    "created_at": "2025-07-04 04:34:14"
  },
  ...
]
POST /api/features

Register a new feature in the feature store

Request Body:
{
  "name": "user_lifetime_value",
  "feature_group": "user_metrics",
  "data_type": "float",
  "description": "Predicted lifetime value of the user"
}

Response:
{
  "id": 4,
  "status": "created"
}

Health Check API

GET /api/health

Check the health status of all services

Try it →
{
  "status": "healthy",
  "services": {
    "database": "sqlite",
    "cache": "redis",
    "memory_usage": "optimized"
  }
}

Demo Data API

POST /api/demo/populate

Populate the system with sample demo data

Response:
{
  "status": "demo data populated"
}