Skip to content

Add script to generate RPC API methods and inputs#492

Merged
lossyrob merged 5 commits intomicrosoft:masterfrom
mmcfarland:user/mjm/add-api-docs-gen
Feb 11, 2025
Merged

Add script to generate RPC API methods and inputs#492
lossyrob merged 5 commits intomicrosoft:masterfrom
mmcfarland:user/mjm/add-api-docs-gen

Conversation

@mmcfarland
Copy link
Copy Markdown
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
@p-singh-ms p-singh-ms requested a review from a team as a code owner January 30, 2025 15:40
@lossyrob lossyrob merged commit 91a84fa into microsoft:master Feb 11, 2025
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.

3 participants