This guide provides comprehensive documentation on the mock APIs for reviews and ratings. Use these APIs to test your applications effectively.
Endpoint: GET /getReviews.php
This endpoint retrieves all reviews.
https://apitpoint.com/api/getReviews.php
[
{
"review_id": 1,
"review_text": "Great product!",
"rating": 5,
"reviewer_name": "John Doe"
},
...
]
Endpoint: GET /ratingSim.php
This endpoint retrieves all ratings.
curl -X POST -d "rating=4&review_id=123" https://apitpoint.com/api/ratingSim.php
[
{
"rating_id": 1,
"rating": 4,
"review_id": 1
},
...
]
Endpoint: POST /mockReview.php
This endpoint simulates submitting a review.
curl -X POST -d "review_text=Excellent service&rating=5&reviewer_name=Jane Doe" https://apitpoint.com/api/mockReview.php
{
"message": "Review submitted successfully (mock)",
"review_text": "Excellent service",
"rating": 5,
"reviewer_name": "Jane Doe"
}
Endpoint: POST /feedbackSim.php
This endpoint simulates submitting feedback.
curl -X POST -d "feedback=Very useful&review_id=4" https://apitpoint.com/api/feedbackSim.php
{
"message": "Feedback submitted successfully (mock)",
"feedback_text": "Very useful",
"rating": 4
}