Project

General

Profile

Actions

Feature #63

closed
RA

Feature #21: Enhance Matching Results and AI Assistant with Company Enrichment and Market Insights

[GetYourJob API] Market-insights proxy route to MatchingAgent

Feature #63: [GetYourJob API] Market-insights proxy route to MatchingAgent

Added by Redmine Admin about 2 months ago. Updated about 2 months ago.

Status:
Shipped
Priority:
Normal
Assignee:
-
Start date:
06/11/2026
Due date:
% Done:

0%

Estimated time:
spec_ref:
build_status:
build_number:
ci_run_url:
scan_status:
scan_report_url:
deploy_status:
preprod_url:
https://github.com/omdev-tech/GetYourJob/pull/240
deployed_at:
branch:
feat/redmine-21-insights-ui
pr_url:
https://github.com/omdev-tech/GetYourJob/pull/239
security_key:
severity:
paused:

Description

**Surface:** GetYourJob API routes (`GetYourJob/src/app/api/`) + infrastructure adapter (`GetYourJob/src/infrastructure/`).

## Description
Expose the MatchingAgent market-insights aggregates (#2) to the GetYourJob frontend via a Next.js API route, so the Market Insights UI (#5) and the assistant (#6) can consume them without calling MA directly.

- New API route (e.g. `GET/POST /api/market-insights`) that authenticates the session, forwards role/filter params to MatchingAgent (`MATCHING_AGENT_URL`), and returns the aggregate.
- Reuse the existing MatchingAgent adapter pattern (`MatchingAgentAdapter`).
- Cache results (Redis with in-memory fallback) keyed by role/filters to absorb the 100+ batch case.

Depends on #2. Blocks #5 and #6.

## Acceptance criteria
- [ ] `/api/market-insights` returns MatchingAgent aggregates for an authenticated session.
- [ ] Role/filter params are forwarded; unauthenticated requests are rejected.
- [ ] Responses are cached (Redis + in-memory fallback) keyed by role/filters.
- [ ] Adapter/route covered by a test (success + MA-unavailable fallback).

**Estimate:** S

Actions

Also available in: PDF Atom