POST /api/ask
Description: Submit a compliance-related query to the AI chatbot and receive a response.
{
"query": "What are the Basel III regulations?",
"userId": "user_12345"
}{
"answer": "Basel III is a set of international banking regulations aimed at improving financial stability."
}POST /api/site-feedback
Description: Submit overall feedback with optional consent to publish as a testimonial.
{
"userId": "user_12345",
"name": "Ada Lovelace",
"email": "ada@example.com",
"organization": "BankCo",
"role": "Compliance Officer",
"rating": 5,
"comments": "Excellent summaries of FCA updates.",
"consentToPublish": true,
"allowContact": true
}{ "message": "Feedback submitted." }GET /api/testimonials
Description: Returns the latest approved testimonials.