MLSAKIIT / MLSAKIIT/ComposeGenie
Backend Feature Request: Validation API Gateway
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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