We use grpc-gateway for exactly this and we program in Java. The 
grpc-gateway is an independent reverse proxy layer that get compiled into 
an executable, so it doesn't matter it is in Go. You run it typically on 
the same server as you grpc service (written in Java) as a separate 
process. I'm not a Go programmer and setting it up required tweaking one 
file of Go code that I copy and pasted from the examples. 

On Friday, August 19, 2016 at 4:48:38 AM UTC+12, [email protected] 
wrote:
>
> Our app has a REST API we've implemented using Jax-RS, Jetty, and 
> Resteasy. 
>
> I'd like to port the whole thing to gRPC, and offer both a gRPC and a 
> JSON/REST interface to our customers.
>
> Our product is not yet released, so I have some flexibility in redesigning 
> the API. But it's going to be necessary to support query parameters in the 
> URL, i.e. GET /hello?foo=bar 
>
> Is this possible using the Java code? Maybe there's a Netty component for 
> it?
>
> (I see that there is a way to do it in Go: 
> https://github.com/grpc-ecosystem/grpc-gateway. Need the same thing in 
> Java.)
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/b7b63157-f3ae-4c1e-b441-a391352f9350%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to