Skip to content

Implement Feedback and popular quizes api #1

@MasterOfLogic1

Description

@MasterOfLogic1

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_global is 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:

  1. API endpoints are accessible without JWT authentication; only an API key is required in the header.
  2. GET /api/quiz/popular returns a JSON list of quizzes sorted by popularity (e.g., most popular first).
  3. GET /api/reviews/positive returns a JSON list of the top 10 positive reviews.
  4. Error responses are provided for missing/invalid API key or other issues.
  5. The implementation is fully contained within the Rockae.Portal.PublicDataAPI repository.

Image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions