We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This feature would allow users to fetch testimonials with the highest ratings and this would increase the visibility for top-rated feedback.
/api/v1/testimonials/top-rated
GET "/api/v1/testimonials/top-rated"
{ "status": "success", "status_code": 200, "message": "Top-rated testimonials retrieved successfully.", "data": [ { "id": "1", "content": "Great service!", "ratings": 5, "author_id": "123", "created_at": "2024-02-28T10:00:00Z" }, { "id": "2", "content": "Amazing experience!", "ratings": 5, "author_id": "456", "created_at": "2024-02-27T15:30:00Z" } ] }
{ "status": "success", "status_code": 200, "message": "No testimonials found.", "data": [] }
{ "status": "error", "status_code": 500, "message": "An unexpected error occurred.", "data": null }
fetch_top_rated
TestimonialService
page
per_page
Write unit tests for:
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description:
This feature would allow users to fetch testimonials with the highest ratings and this would increase the visibility for top-rated feedback.
Endpoint Details:
/api/v1/testimonials/top-rated
Request Example:
GET "/api/v1/testimonials/top-rated"
Response Example:
Success Response:
No Testimonials Found:
Server Error:
Tasks:
fetch_top_rated
method inTestimonialService
that:page
,per_page
).Testing:
Write unit tests for:
The text was updated successfully, but these errors were encountered: