Hi, The RPC interface [1] returns different results depending on the requested version via the "v" GET parameter but it isn't even mentioned on the page and it still defaults to v=1 which lacks dependency information. Would you please add information about that parameter along with some information about the currently supported versions and their differences (or at least a link to relevant information such as changelogs)? Thanks! [1] https://aur.archlinux.org/rpc.php
On Sat, 30 Jan 2016 at 11:57:35, Xyne wrote:
Hi,
The RPC interface [1] returns different results depending on the requested version via the "v" GET parameter but it isn't even mentioned on the page and it still defaults to v=1 which lacks dependency information.
It still defaults to version 1 to avoid breaking backwards compatibility. Everybody should always use the most recent version, though.
Would you please add information about that parameter along with some information about the currently supported versions and their differences (or at least a link to relevant information such as changelogs)? [...]
The current version is documented at [1]. For all changes, you can check the output of `git log web/lib/aurjson.class.php` in the aurweb Git repository. [1] https://projects.archlinux.org/aurweb.git/plain/doc/rpc.txt
On 2016-01-30 12:08 +0100 Lukas Fleischer wrote:
The current version is documented at [1]. For all changes, you can check the output of `git log web/lib/aurjson.class.php` in the aurweb Git repository.
[1] https://projects.archlinux.org/aurweb.git/plain/doc/rpc.txt
Thanks for the link. It would be very helpful if it were added to the page along with an indication of what the current version is. Incidentally, that document uses v=5 but that returns an invalid version error. Perhaps a link to the current release would be best. I have also just noticed that the results returned for type=search do not include all of the information returned by an "info" query, regardless of the version number. Can that be changed or parameterized? Without that information additional info queries are necessary.
On Sat, 30 Jan 2016 at 12:28:42, Xyne wrote:
On 2016-01-30 12:08 +0100 Lukas Fleischer wrote:
The current version is documented at [1]. For all changes, you can check the output of `git log web/lib/aurjson.class.php` in the aurweb Git repository.
[1] https://projects.archlinux.org/aurweb.git/plain/doc/rpc.txt
Thanks for the link. It would be very helpful if it were added to the page along with an indication of what the current version is. Incidentally, that document uses v=5 but that returns an invalid version error. Perhaps a link to the current release would be best.
This is the AsciiDoc source code for the documentation on /rpc/. So it will replace the current document when 4.2.0 will be released (soon). Version 5 is the most recent version in the master branch. It will be available on aur.archlinux.org in a couple of days.
I have also just noticed that the results returned for type=search do not include all of the information returned by an "info" query, regardless of the version number. Can that be changed or parameterized? Without that information additional info queries are necessary.
Actually, only one more info query is required. I even wonder whether a search query should only return the package names by default? Making the amount of returned details configurable might also be a good idea... Regards, Lukas
On 2016-01-30 12:35 +0100 Lukas Fleischer wrote:
Actually, only one more info query is required. I even wonder whether a search query should only return the package names by default? Making the amount of returned details configurable might also be a good idea...
Making it configurable would be best. "search" and "msearch" may often only require names and description but sometimes it is useful to return the full package information to avoid further queries. A "tsearch" for searching by tags may also be useful. Btw, that information should be added to the info results, which used to include the category ID. Regards, Xyne
participants (2)
-
Lukas Fleischer
-
Xyne