Add a ?type=meta endpoint to the RPC interface
-
I have summed up the feature in concise words in the Summary section. -
I have completely described the feature in the Description section. -
I have completed the Blockers section.
Summary
I recently discovered that the GitHub API has an endpoint to get some metadata about their servers among other info.
It would be cool if the aurweb RPC interface had a feature like such as well, which could list things such as the instance's SSH fingerprints and the statistics for the server (which are seen on the homepage in the bottom right):
curl 'https://aur.archlinux.org/rpc/?type=meta'
{
"ssh_fingerprints": {
"ed25519": "SHA256:RFzBCUItH9LZS0cKB5UE6ceAYhBD5C8GeOBip8Z11+4",
"ecdsa": "SHA256:uTa/0PndEgPZTf76e1DFqXKJEXKsn7m9ivhLQtzGOCI",
"rsa": "SHA256:5s5cIyReIfNNVGRFdDbe3hdYiI5OelHGpw2rOUud3Q8"
},
"statistics": {
"packages": 73084,
"orphan_packages": 8679,
"packages_added_past_7_days": 237,
"packages_updated_past_7_days": 1568,
"packages_updated_past_year": 25152,
"packages_never_updated": 18336,
"registered_users": 89307,
"trusted_users": 59
}
}
Edited by Hunter Wittenborn