-
Notifications
You must be signed in to change notification settings - Fork 349
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 google.api.http-based clients #948
Comments
Hi @moecasts , no, I don't think that's possible today... We can generate clients for Twirp, Grpc, Nice rpc, and NestJS, but it looks like you're using the If you'd be interesting in submitting a PR for this support, that'd be great! You could probably crib from the existing client impls to get going. As a disclaimer I've seen the |
I also have this issue. Spent some hours trying to use the generated code by "ts-proto", from protobufs which all use "google.api.http". |
@erba fwiw I agree the Personally I've not used them, which is why ts-proto doesn't support them; I'll add a disclaimer to the readme. Happy to have anyone that wants/needs this submit a PR. |
I have some extensions for timestamp here, could add the other packages like http as well: https://github.com/aperturerobotics/ts-proto-common-types |
@stephenh Thanks for that. Sorry for the curt tone of the last message. In the end this is not your fault. It seems expecting to use protobuf just like an openapi spec - i.e transpiling it and starting using client code right away - is not realistic. |
https://cloud.google.com/endpoints/docs/grpc/transcoding
is possible to generate a http client from a proto like:
Expect ouput like:
The text was updated successfully, but these errors were encountered: