-
Notifications
You must be signed in to change notification settings - Fork 188
Add documention for API servers and RPC methods #664
base: development
Are you sure you want to change the base?
Add documention for API servers and RPC methods #664
Conversation
Merge CoZ Development into jseagrave21 Development
- fix typo
- update help display to show `--extended-rpc` - update formatting
- update formatting, introduce a new header for visibility, and modify wording
- clarify interface methods for neo-python API servers
- Include brief description and usage data - Include default JSON-RPC command list - Include extended JSON-RPC command list - Include POST request examples - Include GET request example
- update formatting
- Begin adding method examples
for compatibility
Development
- re-add seedlist.png
- add remaining method details
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of small changes to start with, I did not fully read/review the Api_Server
file for the reason mentioned below.
I'd like to hear some opinions from @localhuman and @metachris on what they think about keeping a "shadow copy" of RPC command descriptions. I'm leaning towards referring to the offical NEO CLI documentation for the default RPC methods and only describing the extended ones in this documentation. Any thoughts or arguments for/against?
Originally I was just going to write it for the extended methods but I figured it would be good to write a copy for the default methods also because we do not maintain parody with Neo CLI at this moment and we won't because |
- edit the `help` description for `--extended-rpc`
- change wording for `help` for `--extended-rpc`
- remove redundant `ExtendedJsonRpcApi` methods section and update usage to match new help for `ExtendedJsonRpcApi`
- remove reference to websockets
- eliminate reference to websockets
Having some additional features like accepting |
All good. Just waiting for a response from @localhuman @metachris on the documentation duplication #664 (review) |
Looks good to me! |
Now that #634 is merged I am going to add it to the list. |
- fix a couple typos - add `getblockheader` method
for compatibility
Merge CoZ Development into jseagrave21 docs-ExtendedJsonAPi
Okay, it should be good to go. |
@localhuman I'm cannot tell in what direction "looks good to me" points.
but your response could equally mean that the commits by @jseagrave21 look good and they can go in, which would be the opposite. Can you be explicit in what you mean with "looks good to me"? |
Since #714 was merged, I will update the example. |
- update for CityOfZion#714
Okay, @localhuman I think this is ready to go. Will you let me know what you would like to keep from this documentation? Referring to @ixje 's comment:
|
- add REST port info
- add REST server documentation
I also added REST server documentation because other than reading the code and querying a REST server, I haven't seen any documentation for it. |
for compatibility
for compatibility
Merge neo-python development into jseagrave21 docs-ExtendedJsonApi
- revert changes to bring to parody with CityOfZion#719
- add instructions for running custom API plugins
- update documentation for CityOfZion#712 and CityOfZion#719
@localhuman @ixje I have updated the documentation for #712 and #719. Please let me know what you think. |
@ixje With |
I think I'm still of the opinion that we should not duplicate documentation of the basic commands. NEO is maintaining it, we try to adhere to the same format, so linking to their docs is easier. Otherwise we're taking up a huge task were I'd rather use that time and energy to focus on improving other parts of |
@ixje would you like to keep the REST documentation or examples of inputs for JsonRpcApi? Perhaps some of the fixes for typos and then just delete the rest? I can pair it down. |
What current issue(s) does this address, or what feature is it adding?
ExtendedJsonRpcApi
How did you solve this problem?
Trial and Error
How did you make sure your solution works?
make docs
Are there any special changes in the code that we should be aware of?
No
Please check the following, if applicable:
make lint
?make test
?CHANGELOG.rst
? (if not, please do)