You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ComplianceHub API is a RESTful backend application built with Spring Boot, designed to streamline compliance document management for marketplace sellers operating across European markets.
The platform allows sellers to submit and track compliance documents required by each marketplace's local regulations, while internal agents review submissions and regulation managers maintain the regulatory framework per country.
The system supports four roles — Seller, Agent, Regulation Manager, and Admin — each with their own scoped permissions enforced through stateless JWT-based authentication and Spring Security.
An integrated AI chat feature powered by Spring AI and OpenAI allows users to interact with the platform through natural language, with access to real-time tools such as date/time lookup and user data retrieval.
Class Diagram
Setup
Prerequisites
Java 25+
Maven 3.8+
MySQL 8+
An OpenAI API key (for the Spring AI chat feature)
Global exception handler — add a global exception handler; structured error responses across all endpoints instead of relying on default Spring error pages.
Automatic compliance status recalculation — when an Agent reviews a compliance document, the owning seller's complianceStatus should be recalculated automatically based on the status of all their documents, rather than being set manually.
Document expiry and renewal — add expiry dates to compliance documents and automatically flag or downgrade sellers whose documents have outdated.
Role-scoped AI chatbot — extend the chatbot so that its available tools and the data it can access are scoped to the authenticated user's role (e.g. agents see all users, sellers see only themselves).
Frontend client — build a web or mobile interface that consumes the API, providing a visual compliance dashboard for sellers and a document review queue for agents.