archlinux / archweb

Arch Linux website code
https://archlinux.org
GNU General Public License v2.0
326 stars 129 forks source link

Create a real REST API for accessing package data #199

Open jelly opened 5 years ago

jelly commented 5 years ago

Currently we have no real official REST API or consistent JSON API. We need to figure out what data we want to have easily query'able for users.

Current "API":

What's missing

behzadmehrabi commented 4 years ago

may i help you with Django restframework? and maybe a little more detail about what you want?

felipec commented 2 years ago

From task 57137, it would be nice to be able to query the last version of a bunch of packages, AUR provides such interface:

https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=spotify&arg[]=pacaur

Right now the query has to be done per-package, which is extremely inefficient.

Other APIs provide similar queries, where you can get a specific attribute for a bunch of IDs, some limit the number, like 20.

For example:

http://www.archlinux.org/packages?ids=spotify,pacaur&attributes=version

behzadmehrabi commented 2 years ago

it's been a long time..., but I'm still willing to do it because I love the arch community :)

felipec commented 2 years ago

I am willing to help as well. I've been writing REST APIs lately.