MLSAKIIT / MLSAKIIT/ComposeGenie

Backend Feature Request: Validation API Gateway

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Backend enhancement
Dominant language
TypeScript
Stars
4
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
The frontend cannot access the validation logic directly from the validator microservice, causing CORS issues and tight coupling between frontend and services.

Describe the solution you'd like
Implement a dedicated /api/validate endpoint in the backend that receives payloads from the frontend and forwards them to the validator microservice. The backend should handle communication, response parsing, and error management.

Describe alternatives you've considered
Calling the validator service directly from the frontend, but this approach violates CORS policies and breaks the principle of service isolation.

Use Case
Provides a centralized API gateway for validation across multiple environments, allowing the frontend to request validation results securely and consistently.

Additional context

  • Add caching for results based on a hash of the configuration to reduce repeated calls.
  • Ensure proper error handling if the validator service is unavailable.
  • Consider adding logging for validation requests for monitoring and debugging.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or backend entry points are named; first locate the backend entry point and how it communicates with the validator microservice. Done means a /api/validate endpoint forwards frontend payloads, parses responses, handles service errors, and includes the requested configuration-hash caching and request logging.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.