[Feature] Add comments to the RPC
Summary
The AUR RPC should include user comments.
Description
The AUR RPC should include a way to fetch user comments in a similar way to multiinfo.
I'm not sure if the &arg[] should be pkgname or pkgbase.
Blockers
Should probably wait for the aur rewrite first.
Example:
curl 'https://aur.archlinux.org/rpc?type=comments&arg[]=spotify&arg[]=vscode&v=5'
{
"version": 5,
"type": "comments",
"resultcount": 2,
"results": [
{
"PackageBaseID": 38847,
"PackageBase": "spotify",
"PackageName": [ // If we match on pkgname then this is needed so the client can figure out what matched
"foo", // Otherwise we can omit this field
"bar"
}
"resultcount": 1,
"Comments": [
"User": "username",
"Time": 347834732,
"Message: "message content",
"Pinned": true,
]
},
{
"PackageBaseID": 38847,
"PackageBase": "vscode",
"PackageName": [
"foo",
"bar"
}
"resultcount": 1,
"Comments": [
"User": "username",
"Time": 347834732,
"Message: "message content",
"Pinned": true,
]
}
]
}
Edited by Kevin Morris