-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RPC method to get list of methods/notifications #437
Comments
additionally it would be very helpful to return a description of the method and its signature (accepted arguments and types), maybe using JSON schema ? |
system.listMethods just returns the available RPC method names. It can be executed without secret token, because it just returns the method names, and does not alter anything. See GH-437
d0ccb39 adds |
@tatsuhiro-t thanks, that's useful |
aria2 rpc cli https://github.com/sonnyp/aria2.js/blob/master/bin/README.md if it's of any help to you / the project |
the methods description/signature is an other story, will open a new issue if needs be. |
@tatsuhiro-t could you make a new release including the listMethods method? |
We'll do the next release in the next month. |
👍 |
Would be awesome to have a new RPC method to get list of RPC methods/notifications.
This would help RPC clients who do not have the possibility to catch functions call and have to manually declare a function for each aria2 method/notification for example: https://github.com/sonnyp/aria2.js/blob/master/src/index.js#L243
rpc.
namespace could be use for this http://www.jsonrpc.org/specification#extensionsThe text was updated successfully, but these errors were encountered: