space-cloud icon indicating copy to clipboard operation
space-cloud copied to clipboard

[Feature] Add support to auto generate client whenever SpaceCloud's RPC provider gets updated

Open YourTechBud opened this issue 2 years ago • 0 comments

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 pubsub provider of SC to generate events whenever RPC provider updates.
  • 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. 👍

YourTechBud avatar Jun 03 '23 06:06 YourTechBud