How to get OS releases from REST API (like WS general.osinfo)


I’m trying to enumerate the list of OS releases available to pass to a deployment but I’ve not found a way to get all the information back from the REST API that I get in the general.osinfo websocket method that the UI uses.

The pseudo-code for getting all available os releases I believe goes something like this:
for source in GET /MAAS/api/2.0/boot-sources/
for selection in GET /MAAS/api/2.0/boot-sources/{}
releases += {name=??, release="{selection.os}/{selection.release}"

The part I’m missing here is the friendly name that I see in the UI which I believe comes from the OSRegistry seen here:

Right now I’m reliant on calling general.osinfo on the websocket which is less than friendly from python.

If I can get the equivalent info from the REST API that would be great, can it be done, or is this a feature request?