-
Notifications
You must be signed in to change notification settings - Fork 25
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
Generate Golang SDK #1412
Comments
@sbliven Do you still need the Golang SDK? If so, have you already generated this SDK locally and do you have the details of the commands? Do you know where we should publish the package ( the equivalent of NPM.js for typescript)? |
I think a golang sdk would be useful. It would guarantee compliance with the scicat backend. It would also probably be ncessary to support the same list of commands that we have in scicat-cli or scicat-cli would have to rewritten with the generated skeleton. Said commands are as follows:
|
Thanks for the detailed list, @consolethinks. I guess all of the openapi endpoints would be included as function calls. I'm not sure how much effort it would take to port our existing REST calls to use the SDK. I think the biggest benefit would be having the DTOs always up to date. Currently we have to detect DTO changes via testing, so it would be nice to have this happen at compile time. Regarding packaging, Go packages are just pushed as github releases. See Decentralized publishing. |
We are using golang for our cli. We've been looking into generating the SciCat data models from the OpenAPI rather than manually coding them. Maybe this could be combined with the python and typescript SDK generation efforts to also generate a Go SDK.
The text was updated successfully, but these errors were encountered: