Devtron Central API
A centralized REST API service for Devtron metadata, release information, and auxiliary services.
๐ Table of Contents
๐ฏ Overview
Devtron Central API is a Go-based REST API that provides:
- ๐ฆ Release notes and version information
- ๐ง Module metadata and configurations
- ๐๏ธ CI/CD build templates and metadata
- ๐ฑ Currency exchange rates
- ๐ GitHub webhook handling
Port: 8080
Language: Go 1.19+
Framework: Gorilla Mux
For detailed information, see PROJECT_OVERVIEW.md
๐ Services
1. Release Notes Service
Manages Devtron releases from GitHub with caching and blob storage.
Endpoints:
GET /release/notes - Get releases with pagination
POST /release/webhook - GitHub webhook handler
2. Module Management
Provides Devtron module information and metadata.
Endpoints:
GET /modules - List all modules
GET /v2/modules - Enhanced module list
GET /module?name={name} - Get module by name
3. CI/CD Metadata
Serves build templates and buildpack information.
Endpoints:
GET /dockerfileTemplate - Dockerfile templates
GET /buildpackMetadata - Buildpack metadata
4. Currency Exchange
Real-time currency conversion rates.
Endpoints:
GET /currency/rates?base={currency} - Exchange rates
5. Health Check
Service health monitoring.
Endpoints:
GET /health - Health status
๐ค MCP Documentation Server
NEW: A Model Context Protocol (MCP) server for semantic search over Devtron documentation.
Features
- ๐ Semantic search using AWS Bedrock Titan embeddings
- ๐ฆ ChromaDB vector storage
- ๐ Auto-sync with GitHub documentation
- ๐ฐ Free tier (AWS Bedrock)
- โก Fast (<500ms search)
Quick Start
cd mcp-docs-server
./setup.sh
python server.py
Documentation
๐ Quick Start
Central API (Go)
# Build
make build
# Run
./central-api
With Docker
docker build -t central-api:latest .
docker run -p 8080:8080 central-api:latest
๐ก API Endpoints
Health Check
curl http://localhost:8080/health
Get Releases
curl http://localhost:8080/release/notes?offset=0&size=10
Get Modules
curl http://localhost:8080/modules
Get Currency Rates
curl http://localhost:8080/currency/rates?base=USD
For complete API documentation, see PROJECT_OVERVIEW.md
๐ Documentation
Central API
MCP Documentation Server
Implementation
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Central API (Go) โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ
โ โ Release โ โ Modules โ โ Currency โ โ
โ โ Notes โ โ Metadata โ โ Exchange โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Documentation Server (Python) โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ
โ โ GitHub โ โ ChromaDB โ โ Bedrock โ โ
โ โ Sync โ โ Vector โ โ Titan โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ ๏ธ Development
Prerequisites
- Go 1.19+
- Make
- Wire (for dependency injection)
Build
Run Tests
Generate Wire
๐ณ Docker
Build Image
docker build -t central-api:latest .
Run Container
docker run -p 8080:8080 \
-e BLOB_STORAGE_PROVIDER=S3 \
-e AWS_ACCESS_KEY_ID=xxx \
central-api:latest
๐ License
Apache License 2.0 - Copyright (c) 2024 Devtron Inc.
๐ค Contributing
Contributions are welcome! Please read the contributing guidelines before submitting PRs.
๐ Support
Maintained by: Devtron Labs
Repository: https://github.com/devtron-labs/central-api