Skip to content
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

Add script to generate RPC API methods and inputs #492

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mmcfarland
Copy link
Member

When evaluating the pgtoolsservice, I wasn't able to find a concise list of the RPC methods that were implemented. I've added a new script that inspects the Services which are loaded in the default configuration, and enumerates the RPC methods and their inputs. This should give an indication of the server capabilities, but the source code remains the best source of truth for the implementation details. The response types aren't mapped to request methods, so that is still left as an exercise to the developer. Future maintenace could add docstrings to all the request and response types, but the included method gives a good overview with minimal source code edits.

This script will output markdown formatted text, and can be piped to a file (as was done and included in this PR).

Expected usage:

./scripts/generate_ossdbtoolsservice_rpc_docs.py > rpc_api_docs.md

Expected usage:
./scripts/generate_ossdbtoolsservice_rpc_docs.py > rpc_api_docs.md
@mmcfarland mmcfarland requested a review from a team as a code owner October 21, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants