-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Currently, the API lacks an endpoint to fetch resource reviews. I suggest adding a getResourceReviews endpoint similar to the existing getResourceUpdates functionality, which would allow developers to retrieve review data.
Proposed Endpoint:
GET /simple/0.2/index.php?action=getResourceReviews&id={resource_id}&page={page_number}
Proposed Response Format:
[
{
"id": "12345",
"resource_id": "2",
"author": {
"id": "16",
"username": "ExampleUser",
"avatar": "https://www.spigotmc.org/data/avatars/l/0/16.jpg?1234567890"
},
"rating": 5,
"message": "Demo",
"post_date": 1364338800,
"version_string": "1.2.3"
},
{
"id": "12346",
"resource_id": "2",
"author": {
"id": "32",
"username": "AnotherUser",
"avatar": "https://www.spigotmc.org/data/avatars/l/0/32.jpg?1234567890"
},
"rating": 4,
"message": "Demo",
"post_date": 1364425200,
"version_string": "2.3.4"
}
]Metadata
Metadata
Assignees
Labels
No labels