🚀 API Gateway Documentation

This project is a centralized API Gateway designed to manage and route client requests across multiple backend microservices. It handles authentication, rate limiting, security headers, and request proxying at a single entry point, allowing individual services to remain lightweight and focused purely on business logic.

By introducing this gateway layer, the system becomes easier to scale, monitor, and secure, while avoiding duplicated logic such as JWT validation and traffic control across services.


POST /register

Register a new user

Request Body:
{
  "email": "user@example.com",
  "password": "securePassword",
  "name": "John Doe"
}

Required: email, password

POST /login

User authentication

Request Body:
{
  "email": "user@example.com",
  "password": "securePassword"
}

Required: email, password

GET /health

Checks authentication service health

GET /job

Returns status and results of all cron jobs

🔒 Requires Authorization Header

POST /task

Create a scheduled background task

🔒 Requires Authorization Header

Request Body:
{
  "type": "text_summarizer | http_request",
  "payload": {
    "key": "value"
  },
  "schedule": "*/5 * * * *"
}

schedule: Standard cron expression


📌 Rate limit: 18 requests/min per IP