-
Notifications
You must be signed in to change notification settings - Fork 1
Implement Feedback and popular quizes api #1
Description
User Story: Public Data API Endpoints
Title:
Public Data API for Popular Quizzes and Feedback
As a Frontend Developer
I want an API built in the Rockae.Portal.PublicDataAPI repo that provides public endpoints for popular quizzes and top feedback
So that the frontend can display global quizzes (ordered by popularity) and top 10 positive reviews.
Please note no endpoint in this repo should require JWT authentication but rather a simple API key passed in the header.
Requirements:
-
GET /api/popular-quizzes: Returns all quizzes (where
is_globalis true) sorted by popularity. -
popularity should be filterable based on number of positive reviews or number of times candidates have taken the quiz (it should be left for the front-end to decide what filter strategy to call) but default should be number of times candidates have taken the quiz.
-
GET /api/feedback: Returns the top 10 positive reviews about the platform.
Acceptance Criteria:
- API endpoints are accessible without JWT authentication; only an API key is required in the header.
- GET /api/quiz/popular returns a JSON list of quizzes sorted by popularity (e.g., most popular first).
- GET /api/reviews/positive returns a JSON list of the top 10 positive reviews.
- Error responses are provided for missing/invalid API key or other issues.
- The implementation is fully contained within the Rockae.Portal.PublicDataAPI repository.
