Skip to content

feat(gateway): Add routes for document analysis service endpoints

zakariae yahya a demandé de fusionner feature/refactor_chat_memory vers develop

feat(gateway): Add document analysis service routes

Description

Summary

Add Gateway routing for mobimarche-ai-service (document analysis) endpoints

Routes Added

Route ID Path Circuit Breaker Target Service
integrations-route /integrations/** integrationsCircuitBreaker agentServiceDocumentAnalysisUrl
indexations-route /indexations/** indexationsCircuitBreaker agentServiceDocumentAnalysisUrl
chat-route /chat/** chatCircuitBreaker agentServiceDocumentAnalysisUrl
memory-service-route /api/memory/** memoryCircuitBreaker agentServiceDocumentAnalysisUrl

Changes

  • src/main/java/com/izemx/iavia/config/GatewayConfig.java
    • Add 4 new routes for document analysis microservice
    • Each route includes circuit breaker with fallback to /fallback

Endpoints Exposed

Integrations

  • GET/POST/PUT/DELETE /integrations/** - OAuth integrations management

Indexations

  • POST /indexations/** - Document indexation triggers
  • GET /indexations/** - Indexation job status

Chat

  • POST /chat/conversations - Create conversation
  • GET /chat/conversations - List conversations
  • POST /chat/conversations/{id}/messages - Send message

Memory

  • GET /api/memory/**/internal - Internal platform memory (userUuid)
  • GET /api/memory/**/external - External channel memory (chatId + channel)

Test Plan

  • Verify /integrations/** routes correctly
  • Verify /indexations/** routes correctly
  • Verify /chat/** routes correctly
  • Verify /api/memory/** routes correctly
  • Test circuit breaker fallback behavior

Rapports de requête de fusion