space-cloud
space-cloud copied to clipboard
[Feature] Add support to auto generate client whenever SpaceCloud's RPC provider gets updated
The problem faced currently?
I need to manually run the spacectl client gen whenever I want consume the latest published APIs. This required me to perform the following steps:
- Dowload the openapi.json file from SC
- Run the client gen command
How can we solve it?
- Use the
pubsubprovider of SC to generate events whenever RPCproviderupdates. - Create a
spacectl client sync --url <SC URL>command to:- Subscribes to RPC provider provisioned event
- On event received generate the client based on the openapi present in the event payload
If you want this feature to be implemented, give it a thumbs up reaction, so that we can determine which features are important to you. 👍