API Design · Senior · Question 27 of 75

How can you expose a gRPC service to browsers and REST clients without duplicating logic?

Explanation

Google's APIs use HTTP annotations in protos to serve the same methods as REST and gRPC.

Further reading

Problem with a question

API Design · Senior · question 27

Test yourself

Take the API Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz