Talk:Aurweb RPC interface

From ArchWiki
(Redirected from Talk:AurJson)
Latest comment: 1 November 2023 by Ashark in topic Use several by arguments?

Use several by arguments?

I would like to use several "by" fields, like logical "OR". For example, I want to search all possible dependencies (depends, optdepends, makedepends, checkdepends) for the package. If I use the second by field, it is not considered. Example url:
https://aur.archlinux.org/rpc/v5/search/kvantum-theme-nordic-git?by=depends - returns nothing (this is ok)
https://aur.archlinux.org/rpc/v5/search/kvantum-theme-nordic-git?by=optdepends - returns a dependency (this is ok)
https://aur.archlinux.org/rpc/v5/search/kvantum-theme-nordic-git?by=depends&by=optdepends - returns nothing (because only the first by is considered.
Can we extend the API, so we can make a single request for both? Ashark (talk) 11:46, 1 November 2023 (UTC)Reply[reply]