Skip to main content

API Gateway

The API Gateway (Zuul) serves as the single entry point for all client requests to the SureInk Platform. It handles routing, security filtering, and request aggregation.

Key Responsibilities

  • Routing: Directs incoming requests to the appropriate microservice (e.g., /api/licenses -> sureink-cloud-msa).
  • Authentication: Validates OAuth2 tokens via Keycloak before passing requests downstream.
  • Load Balancing: Distributes traffic across multiple instances of a service (via Ribbon/Eureka).
  • CORS: Manages Cross-Origin Resource Sharing policies for the frontend.

Configuration

  • Port: 8762
  • Service Name: sureink-gateway
  • Discovery: Registers with Eureka at http://localhost:8761

Routes

Path PrefixTarget ServiceDescription
/api/msa/**sureink-cloud-msaLicensing and subscriptions
/api/users/**sureink-user-managementUser and org management
/api/customers/**sureink-customerCustomer profiles
/api/connect/**sureink-connectorThird-party integrations